[clang] d44371c - [Clang][Driver] Default Generic_GCC::IsIntegratedAssemblerDefault to true
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 28 19:27:20 PDT 2023
Author: Brad Smith
Date: 2023-03-28T22:26:18-04:00
New Revision: d44371c00d87f73aba4ba0feafb4a18151d6f831
URL: https://github.com/llvm/llvm-project/commit/d44371c00d87f73aba4ba0feafb4a18151d6f831
DIFF: https://github.com/llvm/llvm-project/commit/d44371c00d87f73aba4ba0feafb4a18151d6f831.diff
LOG: [Clang][Driver] Default Generic_GCC::IsIntegratedAssemblerDefault to true
Invert the logic and have the default being true. Disable the few spots where
it looks like IAS is currently not used.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D147030
Added:
Modified:
clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/Driver/integrated-as.c
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 0c8868109f7e..b0716322bc14 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2916,44 +2916,12 @@ bool Generic_GCC::isPICDefaultForced() const {
bool Generic_GCC::IsIntegratedAssemblerDefault() const {
switch (getTriple().getArch()) {
- case llvm::Triple::aarch64:
- case llvm::Triple::aarch64_be:
- case llvm::Triple::amdgcn:
- case llvm::Triple::arm:
- case llvm::Triple::armeb:
- case llvm::Triple::avr:
- case llvm::Triple::bpfel:
- case llvm::Triple::bpfeb:
- case llvm::Triple::csky:
- case llvm::Triple::hexagon:
- case llvm::Triple::lanai:
- case llvm::Triple::loongarch32:
- case llvm::Triple::loongarch64:
- case llvm::Triple::m68k:
- case llvm::Triple::mips:
- case llvm::Triple::mipsel:
- case llvm::Triple::mips64:
- case llvm::Triple::mips64el:
- case llvm::Triple::msp430:
- case llvm::Triple::ppc:
- case llvm::Triple::ppcle:
- case llvm::Triple::ppc64:
- case llvm::Triple::ppc64le:
- case llvm::Triple::r600:
- case llvm::Triple::riscv32:
- case llvm::Triple::riscv64:
- case llvm::Triple::sparc:
- case llvm::Triple::sparcel:
- case llvm::Triple::sparcv9:
- case llvm::Triple::systemz:
- case llvm::Triple::thumb:
- case llvm::Triple::thumbeb:
- case llvm::Triple::ve:
- case llvm::Triple::x86:
- case llvm::Triple::x86_64:
- return true;
- default:
+ case llvm::Triple::nvptx:
+ case llvm::Triple::nvptx64:
+ case llvm::Triple::xcore:
return false;
+ default:
+ return getTriple().getVendor() != llvm::Triple::Myriad;
}
}
diff --git a/clang/test/Driver/integrated-as.c b/clang/test/Driver/integrated-as.c
index dfd669a626bd..55334ed71e59 100644
--- a/clang/test/Driver/integrated-as.c
+++ b/clang/test/Driver/integrated-as.c
@@ -12,5 +12,4 @@
// NOFIAS-NOT: cc1as
// NOFIAS: -cc1
-// NOFIAS: "-fno-verbose-asm"
// NOFIAS: -no-integrated-as
More information about the cfe-commits
mailing list