aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit42a80fedad12fbdc585909762f2284268e5619a8 (patch)
tree16c02abdee9b7589cd5e6e8da0b3806029219e3d /lib/CodeGen
parent646f7afb797630020f02c6f552c6c5c8d7e73ad6 (diff)
Avoid emitting two tabs when switching to a named section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index a9bd4ebd11..dd100c6e19 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/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';
}
}