summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-08-12 16:13:43 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-08-12 16:13:43 +0000
commitca94102d3e9362820005a1dcd68f449752e22d15 (patch)
tree6c80926fb577726405979d9f7a6b55baa324ce3b /llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
parent4ac8b3f781d772db97966998b2648fe27eb1cada (diff)
downloadbcm5719-llvm-ca94102d3e9362820005a1dcd68f449752e22d15.tar.gz
bcm5719-llvm-ca94102d3e9362820005a1dcd68f449752e22d15.zip
.section cleanup, patch from Nicholas Riley
llvm-svn: 22763
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp6
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;
OpenPOWER on IntegriCloud