[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Fri Aug 12 09:13:59 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaAsmPrinter.cpp updated: 1.18 -> 1.19
---
Log message:

.section cleanup, patch from Nicholas Riley

---
Diffs of the changes:  (+3 -3)

 AlphaAsmPrinter.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.18 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.19
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.18	Fri Jul 22 15:52:16 2005
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp	Fri Aug 12 11:13:43 2005
@@ -222,7 +222,7 @@
 
   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 @@
   if (CurSection != NewSection) {
     CurSection = NewSection;
     if (!CurSection.empty())
-      OS << "\t." << NewSection << "\n";
+      OS << "\t.section ." << NewSection << "\n";
   }
 }
 
@@ -297,7 +297,7 @@
           // FALL THROUGH
         case GlobalValue::InternalLinkage:
           if (C->isNullValue())
-            SwitchSection(O, "bss"); //was .bss
+            SwitchSection(O, "bss");
           else
             SwitchSection(O, "data");
           break;






More information about the llvm-commits mailing list