mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
Make the masm codepath work like the normal code path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7027d5339
commit
13f161c518
@ -79,6 +79,7 @@ void AsmPrinter::SwitchToTextSection(const char *NewSection,
|
||||
if (!CurrentSection.empty())
|
||||
O << CurrentSection << "\tends\n\n";
|
||||
CurrentSection = NS;
|
||||
if (!CurrentSection.empty())
|
||||
O << CurrentSection << "\tsegment 'CODE'\n";
|
||||
}
|
||||
} else {
|
||||
@ -115,6 +116,7 @@ void AsmPrinter::SwitchToDataSection(const char *NewSection,
|
||||
if (!CurrentSection.empty())
|
||||
O << CurrentSection << "\tends\n\n";
|
||||
CurrentSection = NS;
|
||||
if (!CurrentSection.empty())
|
||||
O << CurrentSection << "\tsegment 'DATA'\n";
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user