mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
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:
parent
dad9c5a14f
commit
4ca4bb1ed2
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user