aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndrzej Warzynski <andrzej.warzynski@arm.com>2022-03-08 10:01:55 +0000
committerAndrzej Warzynski <andrzej.warzynski@arm.com>2022-03-08 19:21:58 +0000
commit8321579b2830d1475a69306a02b61789f8ca3cf7 (patch)
tree9b4180845aadddf48f3a942719bbb700a654ff26 /flang/lib/Frontend/CompilerInvocation.cpp
parent78a127a3ef066451d1a77f452937cecfe25da64b (diff)
downloadllvm-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/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 32888bd..a1d7309 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -168,6 +168,9 @@ static bool ParseFrontendArgs(FrontendOptions &opts, llvm::opt::ArgList &args,
case clang::driver::options::OPT_fdebug_dump_parse_tree:
opts.programAction = DebugDumpParseTree;
break;
+ case clang::driver::options::OPT_fdebug_dump_pft:
+ opts.programAction = DebugDumpPFT;
+ break;
case clang::driver::options::OPT_fdebug_dump_all:
opts.programAction = DebugDumpAll;
break;