[all-commits] [llvm/llvm-project] 85b86c: [flang][driver] Fix `-fdebug-dump-provenance`
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Wed Apr 7 06:15:53 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85b86c6f43ab50ba70571ed49da7e81f7d52ffd2
https://github.com/llvm/llvm-project/commit/85b86c6f43ab50ba70571ed49da7e81f7d52ffd2
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-04-07 (Wed, 07 Apr 2021)
Changed paths:
M flang/include/flang/Frontend/FrontendOptions.h
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/test/Driver/debug-provenance.f90
Log Message:
-----------
[flang][driver] Fix `-fdebug-dump-provenance`
The -fdebug-dump-provenance flag is meant to be used with
needProvenanceRangeToCharBlockMappings set to true. This way, extra
mapping is generated that allows e.g. IDEs to retrieve symbol's scope
(offset into cooked character stream) based on symbol's source code
location. This patch makes sure that this option is set when using
-fdebug-dump-provenance.
With this patch, the implementation of -fdebug-dump-provenance in
`flang-new -fc1` becomes consistent with `f18`. The corresponding LIT
test is updated so that it can be shared with `f18`. I refined it a bit
so that:
* it becomes a frontend-only test
* it's stricter about the expected output
Differential Revision: https://reviews.llvm.org/D98847
More information about the All-commits
mailing list