From: Andrew Lenharth Date: Fri, 12 Aug 2005 16:13:43 +0000 (+0000) Subject: .section cleanup, patch from Nicholas Riley X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=21e786bdb4f879c747141af71333ad3cf48364fe;p=oota-llvm.git .section cleanup, patch from Nicholas Riley git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22763 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp index 19db81935a5..ea5c4690052 100644 --- a/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -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;