mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
.section cleanup, patch from Nicholas Riley
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9656e721e9
commit
21e786bdb4
@ -222,7 +222,7 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
|
||||
|
||||
if (CP.empty()) return;
|
||||
|
||||
SwitchSection(O, "section .rodata");
|
||||
SwitchSection(O, "rodata");
|
||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||
// SwitchSection(O, "section .rodata, \"dr\"");
|
||||
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
||||
@ -252,7 +252,7 @@ void AlphaAsmPrinter::SwitchSection(std::ostream &OS, const char *NewSection)
|
||||
if (CurSection != NewSection) {
|
||||
CurSection = NewSection;
|
||||
if (!CurSection.empty())
|
||||
OS << "\t." << NewSection << "\n";
|
||||
OS << "\t.section ." << NewSection << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ bool AlphaAsmPrinter::doFinalization(Module &M) {
|
||||
// FALL THROUGH
|
||||
case GlobalValue::InternalLinkage:
|
||||
if (C->isNullValue())
|
||||
SwitchSection(O, "bss"); //was .bss
|
||||
SwitchSection(O, "bss");
|
||||
else
|
||||
SwitchSection(O, "data");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user