Darwin doesn't support #APP/#NO_APP
authorChris Lattner <sabre@nondot.org>
Wed, 8 Feb 2006 23:42:22 +0000 (23:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 8 Feb 2006 23:42:22 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26066 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.cpp

index c7218ea62c41f85d8639e9608e302b20b20f893c..f46d8236bf28f7c838f67752cc4f46725916b7ee 100644 (file)
@@ -246,8 +246,7 @@ namespace {
     DarwinDwarfWriter DW;
 
     DarwinAsmPrinter(std::ostream &O, TargetMachine &TM)
-      : PPCAsmPrinter(O, TM), DW(O, this)      
-      {
+      : PPCAsmPrinter(O, TM), DW(O, this) {
       CommentString = ";";
       GlobalPrefix = "_";
       PrivateGlobalPrefix = "L";     // Marker for constant pool idxs
@@ -258,6 +257,7 @@ namespace {
       LCOMMDirective = "\t.lcomm\t";
       StaticCtorsSection = ".mod_init_func";
       StaticDtorsSection = ".mod_term_func";
+      InlineAsmStart = InlineAsmEnd = "";  // Don't use #APP/#NO_APP
     }
 
     virtual const char *getPassName() const {
index 79bf17f08439d283b5e06d497badeb0aebbb51a5..7de9ef2b5ff3ab21c54e5d2dd527f26a5a124694 100644 (file)
@@ -60,6 +60,7 @@ bool X86SharedAsmPrinter::doInitialization(Module &M) {
     forDarwin = true;
     StaticCtorsSection = ".mod_init_func";
     StaticDtorsSection = ".mod_term_func";
+    InlineAsmStart = InlineAsmEnd = "";  // Don't use #APP/#NO_APP
     break;
   case X86Subtarget::isCygwin:
     GlobalPrefix = "_";