summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-09 19:28:49 +0000
committerChris Lattner <sabre@nondot.org>2005-12-09 19:28:49 +0000
commita6f835f5a021438dd7cd31c9130237128c49b0fb (patch)
tree32e435bdb6225f721294d9380e71466a50d19a5e /llvm/lib/CodeGen/AsmPrinter.cpp
parente0f5f8e43c01add4af8786e569d4bd0ce1f4e00e (diff)
downloadbcm5719-llvm-a6f835f5a021438dd7cd31c9130237128c49b0fb.tar.gz
bcm5719-llvm-a6f835f5a021438dd7cd31c9130237128c49b0fb.zip
Avoid emitting two tabs when switching to a named section
llvm-svn: 24646
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index a9bd4ebd110..dd100c6e19c 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -30,12 +30,12 @@ void AsmPrinter::SwitchSection(const char *NewSection, const GlobalValue *GV) {
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';
}
}
OpenPOWER on IntegriCloud