diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-09 19:28:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-09 19:28:49 +0000 |
commit | a6f835f5a021438dd7cd31c9130237128c49b0fb (patch) | |
tree | 32e435bdb6225f721294d9380e71466a50d19a5e /llvm/lib | |
parent | e0f5f8e43c01add4af8786e569d4bd0ce1f4e00e (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 4 |
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'; } } |