diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-02-23 17:59:17 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-10 12:09:16 +0000 |
commit | 523d7bc6f427f9ae32e54dbf1764826cfb269d21 (patch) | |
tree | 0b384bb7d6aa24471b1c42e7055180cfffb56fc1 /flang/lib/FrontendTool | |
parent | a776942ba1aa0e381dd41a01de4b54fc5dc431cd (diff) | |
download | llvm-523d7bc6f427f9ae32e54dbf1764826cfb269d21.zip llvm-523d7bc6f427f9ae32e54dbf1764826cfb269d21.tar.gz llvm-523d7bc6f427f9ae32e54dbf1764826cfb269d21.tar.bz2 |
[flang][driver] Add `-fdebug-dump-parsing-log`
This patch adds `-fdebug-dump-parsing-log` in the new driver. This option is
semantically identical to `-fdebug-instrumented-parse` in `f18` (the
former is added as an alias in `f18`).
As dumping the parsing log makes only sense for instrumented parses, we
set Fortran::parser::Options::instrumentedParse to `True` when
`-fdebug-dump-parsing-log` is used. This is consistent with `f18`.
To facilitate tweaking the configuration of the frontend based on the
action being requested, `setUpFrontendBasedOnAction` is introduced in
CompilerInvocation.cpp.
Differential Revision: https://reviews.llvm.org/D97457
Diffstat (limited to 'flang/lib/FrontendTool')
-rw-r--r-- | flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index c5f7bb2..041e79b 100644 --- a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -52,6 +52,9 @@ static std::unique_ptr<FrontendAction> CreateFrontendBaseAction( case DebugDumpProvenance: return std::make_unique<DebugDumpProvenanceAction>(); break; + case DebugDumpParsingLog: + return std::make_unique<DebugDumpParsingLogAction>(); + break; case DebugMeasureParseTree: return std::make_unique<DebugMeasureParseTreeAction>(); break; |