diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2022-03-08 10:01:55 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2022-03-08 19:21:58 +0000 |
commit | 8321579b2830d1475a69306a02b61789f8ca3cf7 (patch) | |
tree | 9b4180845aadddf48f3a942719bbb700a654ff26 /flang/lib/FrontendTool | |
parent | 78a127a3ef066451d1a77f452937cecfe25da64b (diff) | |
download | llvm-8321579b2830d1475a69306a02b61789f8ca3cf7.zip llvm-8321579b2830d1475a69306a02b61789f8ca3cf7.tar.gz llvm-8321579b2830d1475a69306a02b61789f8ca3cf7.tar.bz2 |
[flang][driver] Add support for `-debug-dump-pft`
This patch adds support for dumping the pre-FIR tree in `flang-new
-fc1`, i.e. Flang's frontend driver. This flag is functionally identical
to `-pft-test` in `bbc` and semantically similar to
`-fdebug-dump-parse-tree` from `flang-new -fc1`.
Differential Revision: https://reviews.llvm.org/D121198
Diffstat (limited to 'flang/lib/FrontendTool')
-rw-r--r-- | flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index d5c15b1..d97833b 100644 --- a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -49,6 +49,8 @@ static std::unique_ptr<FrontendAction> CreateFrontendBaseAction( return std::make_unique<DebugDumpSymbolsAction>(); case DebugDumpParseTree: return std::make_unique<DebugDumpParseTreeAction>(); + case DebugDumpPFT: + return std::make_unique<DebugDumpPFTAction>(); case DebugDumpParseTreeNoSema: return std::make_unique<DebugDumpParseTreeNoSemaAction>(); case DebugDumpAll: |