From 8321579b2830d1475a69306a02b61789f8ca3cf7 Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Tue, 8 Mar 2022 10:01:55 +0000 Subject: [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 --- flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flang/lib/FrontendTool') 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 CreateFrontendBaseAction( return std::make_unique(); case DebugDumpParseTree: return std::make_unique(); + case DebugDumpPFT: + return std::make_unique(); case DebugDumpParseTreeNoSema: return std::make_unique(); case DebugDumpAll: -- cgit v1.1