[PATCH] D97457: [flang][driver] Add `-fdebug-dump-parsing-log`
Andrzej Warzynski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 25 03:19:04 PST 2021
awarzynski created this revision.
Herald added a reviewer: sscalpone.
Herald added subscribers: jansvoboda11, dang.
awarzynski requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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
facilate tweaking the frontend based on the action being run,
`setUpFrontendBasedOnAction` in CompilerInvocation.cpp is introduced.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97457
Files:
clang/include/clang/Driver/Options.td
flang/include/flang/Frontend/FrontendActions.h
flang/include/flang/Frontend/FrontendOptions.h
flang/lib/Frontend/CompilerInvocation.cpp
flang/lib/Frontend/FrontendActions.cpp
flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
flang/test/Flang-Driver/debug-parsing-log.f90
flang/test/Flang-Driver/driver-help.f90
flang/tools/f18/f18.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97457.326338.patch
Type: text/x-patch
Size: 6927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210225/37de89b8/attachment.bin>
More information about the cfe-commits
mailing list