[clang] b16a758 - [flang][driver] Disable Clang options in Flang
Andrzej Warzynski via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 21 02:29:47 PDT 2023
Author: Andrzej Warzynski
Date: 2023-08-21T09:27:07Z
New Revision: b16a7581ff8bcb2d24aace1239af4440f47ccb5f
URL: https://github.com/llvm/llvm-project/commit/b16a7581ff8bcb2d24aace1239af4440f47ccb5f
DIFF: https://github.com/llvm/llvm-project/commit/b16a7581ff8bcb2d24aace1239af4440f47ccb5f.diff
LOG: [flang][driver] Disable Clang options in Flang
Restore the desired setting that was reverted in
https://reviews.llvm.org/D158289.
This is to be merged once Fortran tests in llvm-test-suite are updated
accordingly:
https://reviews.llvm.org/D158308.
Differential Revision: https://reviews.llvm.org/D158307
Added:
Modified:
clang/lib/Driver/Driver.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index afbecb126f8f58..1cdd7ec42d8cc8 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -6495,7 +6495,7 @@ Driver::getOptionVisibilityMask(bool UseDriverMode) const {
if (IsDXCMode())
return llvm::opt::Visibility(options::DXCOption);
if (IsFlangMode()) {
- return llvm::opt::Visibility(options::ClangOption | options::FlangOption);
+ return llvm::opt::Visibility(options::FlangOption);
}
return llvm::opt::Visibility(options::ClangOption);
}
More information about the cfe-commits
mailing list