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

llvm-svn: 28186
This commit is contained in:
Chris Lattner 2006-05-09 05:13:34 +00:00
parent d0201946ad
commit c0f0dfa56f
1 changed files with 2 additions and 20 deletions

View File

@ -70,19 +70,10 @@ void AsmPrinter::SwitchToTextSection(const char *NewSection,
// sections.
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())
NS = GV->getSection();
else
NS = "_text";
NS = NewSection;
if (CurrentSection != NS) {
if (!CurrentSection.empty())
@ -115,19 +106,10 @@ void AsmPrinter::SwitchToDataSection(const char *NewSection,
// sections.
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())
NS = GV->getSection();
else
NS = "_data";
NS = NewSection;
if (CurrentSection != NS) {
if (!CurrentSection.empty())