[PATCH] Use the integrated assembler by default on PowerPC and SPARC
Brad Smith
brad at comstyle.com
Fri Jan 2 19:20:48 PST 2015
Use the integrated assembler by default on PowerPC and SPARC.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp (revision 225109)
+++ lib/Driver/ToolChains.cpp (working copy)
@@ -2067,8 +2067,11 @@
getTriple().getArch() == llvm::Triple::armeb ||
getTriple().getArch() == llvm::Triple::thumb ||
getTriple().getArch() == llvm::Triple::thumbeb ||
+ getTriple().getArch() == llvm::Triple::ppc ||
getTriple().getArch() == llvm::Triple::ppc64 ||
getTriple().getArch() == llvm::Triple::ppc64le ||
+ getTriple().getArch() == llvm::Triple::sparc ||
+ getTriple().getArch() == llvm::Triple::sparcv9 ||
getTriple().getArch() == llvm::Triple::systemz;
}
Index: lib/Driver/ToolChains.h
===================================================================
--- lib/Driver/ToolChains.h (revision 225109)
+++ lib/Driver/ToolChains.h (working copy)
@@ -534,17 +534,6 @@
return 2;
}
- virtual bool IsIntegratedAssemblerDefault() const override {
- switch (getTriple().getArch()) {
- case llvm::Triple::ppc:
- case llvm::Triple::sparc:
- case llvm::Triple::sparcv9:
- return true;
- default:
- return Generic_ELF::IsIntegratedAssemblerDefault();
- }
- }
-
protected:
Tool *buildAssembler() const override;
Tool *buildLinker() const override;
@@ -586,14 +575,6 @@
void
AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs,
llvm::opt::ArgStringList &CC1Args) const override;
- bool IsIntegratedAssemblerDefault() const override {
- switch (getTriple().getArch()) {
- case llvm::Triple::ppc:
- return true;
- default:
- return Generic_ELF::IsIntegratedAssemblerDefault();
- }
- }
bool UseSjLjExceptions() const override;
bool isPIEDefault() const override;
@@ -618,14 +599,6 @@
bool IsUnwindTablesDefault() const override {
return true;
}
- bool IsIntegratedAssemblerDefault() const override {
- switch (getTriple().getArch()) {
- case llvm::Triple::ppc:
- return true;
- default:
- return Generic_ELF::IsIntegratedAssemblerDefault();
- }
- }
protected:
Tool *buildAssembler() const override;
Index: test/Driver/freebsd.c
===================================================================
--- test/Driver/freebsd.c (revision 225109)
+++ test/Driver/freebsd.c (working copy)
@@ -128,11 +128,11 @@
// RUN: | FileCheck --check-prefix=CHECK-LTO %s
// CHECK-LTO: ld{{.*}}" "-plugin{{.*}}LLVMgold.so
-// RUN: %clang -target sparc-unknown-freebsd8 %s -### -fpic 2>&1 \
+// RUN: %clang -target sparc-unknown-freebsd8 %s -### -fpic -no-integrated-as 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-SPARC-PIE %s
// CHECK-SPARC-PIE: as{{.*}}" "-KPIC
-// RUN: %clang -mcpu=ultrasparc -target sparc64-unknown-freebsd8 %s -### 2>&1 \
+// RUN: %clang -mcpu=ultrasparc -target sparc64-unknown-freebsd8 %s -### -no-integrated-as 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-SPARC-CPU %s
// CHECK-SPARC-CPU: cc1{{.*}}" "-target-cpu" "ultrasparc"
// CHECK-SPARC-CPU: as{{.*}}" "-Av9a
More information about the llvm-commits
mailing list