diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-20 15:26:46 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-03-22 11:06:50 +0000 |
commit | b3b002b12f2d6ebdb80b678dec0d14786cbef15a (patch) | |
tree | 8b3fa213d2cc3ef5bc86abe3250ca714bf6fc1c6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 7515e81e8c58ca07ac5fede7149634c0dfacae8a (diff) | |
download | llvm-b3b002b12f2d6ebdb80b678dec0d14786cbef15a.zip llvm-b3b002b12f2d6ebdb80b678dec0d14786cbef15a.tar.gz llvm-b3b002b12f2d6ebdb80b678dec0d14786cbef15a.tar.bz2 |
[clang][flang] Moke the definition of `-module-dir` restricted to Flang
`-module-dir` is a Flang specific option and should not be visible in
Clang. This patch adds `FlangOnlyOption` flag to its definition. This
way Clang will know that it should reject it and skip it when generating
output for `clang -help`.
The definition of `-module-dir` is moved next to other Flang options.
As `-J` is an alias for `-module-dir`, it has to be moved as well (the
alias cannot be defined before the original option). As `gfortran` mode
is effectively no longer supported (*), `-J` is claimed as Flang only
option.
This is a follow-up of a post-commit review for
https://reviews.llvm.org/D95448.
* https://reviews.llvm.org/rG6a75496836ea14bcfd2f4b59d35a1cad4ac58cee
Differential Revision: https://reviews.llvm.org/D99018
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions