projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
646f7af
)
Avoid emitting two tabs when switching to a named section
author
Chris Lattner
<sabre@nondot.org>
Fri, 9 Dec 2005 19:28:49 +0000
(19:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 9 Dec 2005 19:28:49 +0000
(19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24646
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter.cpp
index a9bd4ebd1100cff872fd95f9c8365b4dd9e638b5..dd100c6e19c150db7a8a4808e7458e0690e86643 100644
(file)
--- 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'
;
}
}