diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-02-11 18:28:25 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-02-16 09:22:32 +0000 |
commit | 548549e88ac4a1908206b888be24592e1dbcc38f (patch) | |
tree | 73d3ef8e820ac3c2ea6a57acc8680bb73325d079 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | 72af70127c4c8ca582e58cc3dee5466083adadb0 (diff) | |
download | llvm-548549e88ac4a1908206b888be24592e1dbcc38f.zip llvm-548549e88ac4a1908206b888be24592e1dbcc38f.tar.gz llvm-548549e88ac4a1908206b888be24592e1dbcc38f.tar.bz2 |
[flang][f18] Make -fdebug-dump-{symbols|parse-tree} imply -fsyntax-only
The following _action_ options are always used with `-fsyntax-only`
(also an _action_ option):
* -fdebug-dump-symbols
* -fdebug-dump-parse-tree
This patch makes the above options imply `-fsyntax-only`.
From the perspective of `f18` this change saves typing and is otherwise
a non-functional change. But it will simplify things in the new driver,
`flang-new`, in which only the last action option is taken into account
and executed. In other words, the following would only run
`-fsyntax-only`:
```
flang-new -fdebug-dump-symbols -fsyntax-only <input>
```
whereas this would only run `-fdebug-dump-symbols`:
```
flang-new -fsyntax-only -fdebug-dump-symbols <input>
```
Differential Revision: https://reviews.llvm.org/D96528
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions