.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:
Andrew Lenharth 2005-08-12 16:13:43 +00:00
parent 9656e721e9
commit 21e786bdb4

View File

@ -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;