emit .subsections_via_symbols through MCStreamer instead of textually.
authorChris Lattner <sabre@nondot.org>
Mon, 19 Oct 2009 18:03:08 +0000 (18:03 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Oct 2009 18:03:08 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84509 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp

index 8cf0fd1b567fc51aafaa724ca937c4921cd2165f..df42a99fa051cc1772878a5b0708e7cadcc5bb69 100644 (file)
@@ -1291,7 +1291,7 @@ void ARMAsmPrinter::EmitEndOfAsmFile(Module &M) {
     // implementation of multiple entry points).  If this doesn't occur, the
     // linker can safely perform dead code stripping.  Since LLVM never
     // generates code that does this, it is always safe to set.
-    O << "\t.subsections_via_symbols\n";
+    OutStreamer.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols);
   }
 }
 
index a0fba86fa6b2368f5539ccb0210cce8e36fafe42..dc6b8528db3e86ab125f2caa6c280949e96f4eb3 100644 (file)
@@ -1129,7 +1129,7 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) {
   // implementation of multiple entry points).  If this doesn't occur, the
   // linker can safely perform dead code stripping.  Since LLVM never generates
   // code that does this, it is always safe to set.
-  O << "\t.subsections_via_symbols\n";
+  OutStreamer.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols);
 
   return AsmPrinter::doFinalization(M);
 }
index dc4dbde9f450bc1bab2dec9dffab91c59aed6cfd..3fedf83af3f63f41377b29d8a180fed05fbfaa65 100644 (file)
@@ -870,7 +870,9 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
     // implementation of multiple entry points).  If this doesn't occur, the
     // linker can safely perform dead code stripping.  Since LLVM never
     // generates code that does this, it is always safe to set.
-    O << "\t.subsections_via_symbols\n";
+    //O << "\t.subsections_via_symbols\n";
+    
+    OutStreamer.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols);
   }
 
   if (Subtarget->isTargetCOFF()) {