patch-r262303-enable-ppc-integrated-as.diff revision 269012
11556SrgrimesPull in r197521 from upstream clang trunk (by Roman Divacky):
21556Srgrimes
31556Srgrimes  Use the integrated assembler by default on FreeBSD/ppc and ppc64.
41556Srgrimes
51556SrgrimesIntroduced here: http://svnweb.freebsd.org/changeset/base/262303
61556Srgrimes
71556SrgrimesIndex: tools/clang/lib/Driver/ToolChains.h
81556Srgrimes===================================================================
91556Srgrimes--- tools/clang/lib/Driver/ToolChains.h
101556Srgrimes+++ tools/clang/lib/Driver/ToolChains.h
111556Srgrimes@@ -512,8 +512,13 @@ class LLVM_LIBRARY_VISIBILITY FreeBSD : public Gen
121556Srgrimes   virtual void
131556Srgrimes   AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs,
141556Srgrimes                                llvm::opt::ArgStringList &CC1Args) const;
151556Srgrimes+  virtual bool IsIntegratedAssemblerDefault() const {
161556Srgrimes+    if (getTriple().getArch() == llvm::Triple::ppc ||
171556Srgrimes+        getTriple().getArch() == llvm::Triple::ppc64)
181556Srgrimes+      return true;
191556Srgrimes+    return Generic_ELF::IsIntegratedAssemblerDefault();
201556Srgrimes+  }
211556Srgrimes 
221556Srgrimes-
231556Srgrimes   virtual bool UseSjLjExceptions() const;
241556Srgrimes protected:
251556Srgrimes   virtual Tool *buildAssembler() const;
261556Srgrimes