[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Dec 9 11:29:01 PST 2005



Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.30 -> 1.31
---
Log message:

Avoid emitting two tabs when switching to a named section


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

 AsmPrinter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.30 llvm/lib/CodeGen/AsmPrinter.cpp:1.31
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.30	Tue Dec  6 00:18:55 2005
+++ llvm/lib/CodeGen/AsmPrinter.cpp	Fri Dec  9 13:28:49 2005
@@ -30,12 +30,12 @@
   if (GV && GV->hasSection())
     NS = SwitchToSectionDirective + GV->getSection();
   else
-    NS = NewSection;
+    NS = std::string("\t")+NewSection;
   
   if (CurrentSection != NS) {
     CurrentSection = NS;
     if (!CurrentSection.empty())
-      O << "\t" << CurrentSection << "\n";
+      O << CurrentSection << '\n';
   }
 }
 






More information about the llvm-commits mailing list