diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-08-12 16:13:43 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-08-12 16:13:43 +0000 |
commit | ca94102d3e9362820005a1dcd68f449752e22d15 (patch) | |
tree | 6c80926fb577726405979d9f7a6b55baa324ce3b /llvm/lib | |
parent | 4ac8b3f781d772db97966998b2648fe27eb1cada (diff) | |
download | bcm5719-llvm-ca94102d3e9362820005a1dcd68f449752e22d15.tar.gz bcm5719-llvm-ca94102d3e9362820005a1dcd68f449752e22d15.zip |
.section cleanup, patch from Nicholas Riley
llvm-svn: 22763
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp index 19db81935a5..ea5c4690052 100644 --- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/llvm/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; |