aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-05 20:49:52 +0000
committerChris Lattner <sabre@nondot.org>2009-08-05 20:49:52 +0000
commitcafbdc5c095f4cc84e74e0286651cf8daa6efa2a (patch)
treef56e0dd70e4af5041ae25cb0f0257e0560b0084e /lib/CodeGen
parentb2ab7f5ec3438293a2cead51c8bd01254e79317d (diff)
remove the 'DataSectionStartSuffix' and 'TextSectionStartSuffix' knobs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 69bc5edf37..3102bdae01 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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';
}
}