From 21e786bdb4f879c747141af71333ad3cf48364fe Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Fri, 12 Aug 2005 16:13:43 +0000 Subject: [PATCH] .section cleanup, patch from Nicholas Riley git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22763 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaAsmPrinter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;