summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff')
-rw-r--r--contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff b/contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff
new file mode 100644
index 0000000..3d2e107
--- /dev/null
+++ b/contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff
@@ -0,0 +1,25 @@
+Pull in r197521 from upstream clang trunk (by Roman Divacky):
+
+ Use the integrated assembler by default on FreeBSD/ppc and ppc64.
+
+Introduced here: http://svn.freebsd.org/changeset/base/262303
+
+Index: tools/clang/lib/Driver/ToolChains.h
+===================================================================
+--- tools/clang/lib/Driver/ToolChains.h
++++ tools/clang/lib/Driver/ToolChains.h
+@@ -512,8 +512,13 @@ class LLVM_LIBRARY_VISIBILITY FreeBSD : public Gen
+ virtual void
+ AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs,
+ llvm::opt::ArgStringList &CC1Args) const;
++ virtual bool IsIntegratedAssemblerDefault() const {
++ if (getTriple().getArch() == llvm::Triple::ppc ||
++ getTriple().getArch() == llvm::Triple::ppc64)
++ return true;
++ return Generic_ELF::IsIntegratedAssemblerDefault();
++ }
+
+-
+ virtual bool UseSjLjExceptions() const;
+ protected:
+ virtual Tool *buildAssembler() const;
OpenPOWER on IntegriCloud