remove the 'DataSectionStartSuffix' and 'TextSectionStartSuffix' knobs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78242 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 69bc5ed..3102bda 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -92,21 +92,19 @@
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);
+ 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();
- } else {
- O << CurrentSection->getName();
- }
- O << TAI->getDataSectionStartSuffix() << '\n';
+ O << TAI->getSwitchToSectionDirective()
+ << CurrentSection->getName() << FlagsStr.c_str() << '\n';
+ } else {
+ O << CurrentSection->getName() << '\n';
}
}