[all-commits] [llvm/llvm-project] 523d7b: [flang][driver] Add `-fdebug-dump-parsing-log`
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Wed Mar 10 04:10:12 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 523d7bc6f427f9ae32e54dbf1764826cfb269d21
https://github.com/llvm/llvm-project/commit/523d7bc6f427f9ae32e54dbf1764826cfb269d21
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-03-10 (Wed, 10 Mar 2021)
Changed paths:
M clang/include/clang/Driver/Options.td
M flang/include/flang/Frontend/FrontendActions.h
M flang/include/flang/Frontend/FrontendOptions.h
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
M flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
A flang/test/Driver/debug-parsing-log.f90
M flang/test/Driver/driver-help.f90
M flang/tools/f18/f18.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list