.section cleanup, patch from Nicholas Riley
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 12 Aug 2005 16:13:43 +0000 (16:13 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 12 Aug 2005 16:13:43 +0000 (16:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22763 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaAsmPrinter.cpp

index 19db81935a5053f749315f32e467e7194b271d9b..ea5c4690052e569a5b76923f4a7a4ea952233e58 100644 (file)
@@ -222,7 +222,7 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
 
   if (CP.empty()) return;
 
-  SwitchSection(O, "section .rodata");
+  SwitchSection(O, "rodata");
   for (unsigned i = 0, e = CP.size(); i != e; ++i) {
     //    SwitchSection(O, "section .rodata, \"dr\"");
     emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
@@ -252,7 +252,7 @@ void AlphaAsmPrinter::SwitchSection(std::ostream &OS, const char *NewSection)
   if (CurSection != NewSection) {
     CurSection = NewSection;
     if (!CurSection.empty())
-      OS << "\t." << NewSection << "\n";
+      OS << "\t.section ." << NewSection << "\n";
   }
 }
 
@@ -297,7 +297,7 @@ bool AlphaAsmPrinter::doFinalization(Module &M) {
           // FALL THROUGH
         case GlobalValue::InternalLinkage:
           if (C->isNullValue())
-            SwitchSection(O, "bss"); //was .bss
+            SwitchSection(O, "bss");
           else
             SwitchSection(O, "data");
           break;