forked from OSchip/llvm-project
The MASM asmprinter has been fixed, these hacks are no longer needed.
llvm-svn: 28186
This commit is contained in:
parent
d0201946ad
commit
c0f0dfa56f
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue