The MASM asmprinter has been fixed, these hacks are no longer needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-05-09 05:13:34 +00:00
parent dad9c5a14f
commit 4ca4bb1ed2

View File

@ -70,19 +70,10 @@ void AsmPrinter::SwitchToTextSection(const char *NewSection,
// sections. // sections.
if (MLSections) { if (MLSections) {
if (*NewSection == 0) {
// Simply end the current section, if any.
if (!CurrentSection.empty()) {
O << CurrentSection << "\tends\n\n";
CurrentSection.clear();
}
return;
}
if (GV && GV->hasSection()) if (GV && GV->hasSection())
NS = GV->getSection(); NS = GV->getSection();
else else
NS = "_text"; NS = NewSection;
if (CurrentSection != NS) { if (CurrentSection != NS) {
if (!CurrentSection.empty()) if (!CurrentSection.empty())
@ -115,19 +106,10 @@ void AsmPrinter::SwitchToDataSection(const char *NewSection,
// sections. // sections.
if (MLSections) { if (MLSections) {
if (*NewSection == 0) {
// Simply end the current section, if any.
if (!CurrentSection.empty()) {
O << CurrentSection << "\tends\n\n";
CurrentSection.clear();
}
return;
}
if (GV && GV->hasSection()) if (GV && GV->hasSection())
NS = GV->getSection(); NS = GV->getSection();
else else
NS = "_data"; NS = NewSection;
if (CurrentSection != NS) { if (CurrentSection != NS) {
if (!CurrentSection.empty()) if (!CurrentSection.empty())