mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Fix bug where SwitchSection would fail to change to ".bss" successfully.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccdd70a5c0
commit
7e540fe2b6
@ -545,7 +545,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection,
|
||||
if (CurSection != NewSection) {
|
||||
CurSection = NewSection;
|
||||
if (!CurSection.empty())
|
||||
OS << "\t" << NewSection << "\n";
|
||||
OS << "\t.section " << NewSection << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -545,7 +545,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection,
|
||||
if (CurSection != NewSection) {
|
||||
CurSection = NewSection;
|
||||
if (!CurSection.empty())
|
||||
OS << "\t" << NewSection << "\n";
|
||||
OS << "\t.section " << NewSection << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user