aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/FrontendTool
diff options
context:
space:
mode:
authorAndrzej Warzynski <andrzej.warzynski@arm.com>2021-03-08 16:54:11 +0000
committerAndrzej Warzynski <andrzej.warzynski@arm.com>2021-03-18 14:13:24 +0000
commiteefda605fe1701937a8fe5379357e0990ad2fb4e (patch)
treee6f8cb4d7462309e21f7b097f62da74169f586de /flang/lib/FrontendTool
parente6ce0db378473c1d264152f370af719903b98bf8 (diff)
downloadllvm-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/FrontendTool')
-rw-r--r--flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 041e79b..2a08e38 100644
--- a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -61,6 +61,9 @@ static std::unique_ptr<FrontendAction> CreateFrontendBaseAction(
case DebugPreFIRTree:
return std::make_unique<DebugPreFIRTreeAction>();
break;
+ case GetSymbolsSources:
+ return std::make_unique<GetSymbolsSourcesAction>();
+ break;
default:
break;
// TODO: