freebsd-skq/contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff
Dimitry Andric a426b286c8 Add the clang patch for r265477. While here, add a description to the
patch for r263619, and unify all the URLs to point to svnweb.
2014-05-24 22:27:31 +00:00

26 lines
968 B
Diff

Pull in r197521 from upstream clang trunk (by Roman Divacky):
Use the integrated assembler by default on FreeBSD/ppc and ppc64.
Introduced here: http://svnweb.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;