Use the integrated assembler on NetBSD/powerpc by default.
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 15 Aug 2013 15:04:56 +0000 (15:04 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 15 Aug 2013 15:04:56 +0000 (15:04 +0000)
llvm-svn: 188462

clang/lib/Driver/ToolChains.h

index d5c57a96f043376069dcd82624ef29a30fb9182b..9e83013dbea0e9ca578b8656a49699b022e8a0b5 100644 (file)
@@ -514,6 +514,11 @@ public:
   virtual void
   AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs,
                                llvm::opt::ArgStringList &CC1Args) const;
+  virtual bool IsIntegratedAssemblerDefault() const {
+    if (getTriple().getArch() == llvm::Triple::ppc)
+      return true;
+    return Generic_ELF::IsIntegratedAssemblerDefault();
+  }
 
 protected:
   virtual Tool *buildAssembler() const;