diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-08 16:54:11 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-18 14:13:24 +0000 |
commit | eefda605fe1701937a8fe5379357e0990ad2fb4e (patch) | |
tree | e6f8cb4d7462309e21f7b097f62da74169f586de /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | e6ce0db378473c1d264152f370af719903b98bf8 (diff) | |
download | llvm-eefda605fe1701937a8fe5379357e0990ad2fb4e.zip llvm-eefda605fe1701937a8fe5379357e0990ad2fb4e.tar.gz llvm-eefda605fe1701937a8fe5379357e0990ad2fb4e.tar.bz2 |
[flang][driver] Add support for `-fget-symbols-sources`
Adds support for `-fget-symbols-sources` in the new Flang driver. All
relevant tests are updated to use the new driver when
`FLANG_BUILD_NEW_DRIVER` is set.
`RUN` lines in tests are updated so `-fsyntax-only`
comes before `-fget-symbols-sources`. That's because:
* both `-fsyntax-only` and `-fget-symbols-sources` are
action flags, and
* the new driver, flang-new, will only consider the right-most
action flag.
In other words, this change is needed so that the tests work with both
`f18` (requires both flags) and `flang-new` (only considers the last
action flag).
Differential Revision: https://reviews.llvm.org/D98191
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 1271cd3..d2318d3 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -143,6 +143,9 @@ static InputKind ParseFrontendArgs(FrontendOptions &opts, case clang::driver::options::OPT_fdebug_pre_fir_tree: opts.programAction_ = DebugPreFIRTree; break; + case clang::driver::options::OPT_fget_symbols_sources: + opts.programAction_ = GetSymbolsSources; + break; // TODO: // case calng::driver::options::OPT_emit_llvm: |