diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-05 20:49:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-05 20:49:52 +0000 |
| commit | 39fb546b9e2296abf69d5a61007b7bbf656a3270 (patch) | |
| tree | 3747f27011db67740524759b0c2cc4c3c3c1bf0f /llvm/lib/CodeGen | |
| parent | e99fff080db204052b138d130ae8fda4625826dc (diff) | |
| download | bcm5719-llvm-39fb546b9e2296abf69d5a61007b7bbf656a3270.tar.gz bcm5719-llvm-39fb546b9e2296abf69d5a61007b7bbf656a3270.zip | |
remove the 'DataSectionStartSuffix' and 'TextSectionStartSuffix' knobs.
llvm-svn: 78242
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 69bc5edf372..3102bdae017 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -92,21 +92,19 @@ void AsmPrinter::SwitchToSection(const MCSection *NS) { CurrentSection = NS; - if (NS != 0) { - // If section is named we need to switch into it via special '.section' - // directive and also append funky flags. Otherwise - section name is just - // some magic assembler directive. - if (!NS->isDirective()) { - SmallString<32> FlagsStr; - - getObjFileLowering().getSectionFlagsAsString(NS->getKind(), FlagsStr); - - O << TAI->getSwitchToSectionDirective() - << CurrentSection->getName() << FlagsStr.c_str(); - } else { - O << CurrentSection->getName(); - } - O << TAI->getDataSectionStartSuffix() << '\n'; + if (NS == 0) return; + + // If section is named we need to switch into it via special '.section' + // directive and also append funky flags. Otherwise - section name is just + // some magic assembler directive. + if (!NS->isDirective()) { + SmallString<32> FlagsStr; + getObjFileLowering().getSectionFlagsAsString(NS->getKind(), FlagsStr); + + O << TAI->getSwitchToSectionDirective() + << CurrentSection->getName() << FlagsStr.c_str() << '\n'; + } else { + O << CurrentSection->getName() << '\n'; } } |

