aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-02-01 20:38:53 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-02-01 20:38:53 +0000
commitf61ed95a031ec6fcce620728cc1c324bd1b02793 (patch)
tree0d00d1f2134d1c1e8dc3190a9239f55c21606e40
parentae088f4b1d044f545f99bc71dbd528281d42ee03 (diff)
Print the Constant pool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19975 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Alpha/AlphaAsmPrinter.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp
index aaa5a54315..5e316120ff 100644
--- a/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -211,14 +211,13 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
if (CP.empty()) return;
- abort();
-// for (unsigned i = 0, e = CP.size(); i != e; ++i) {
-// O << "\t.section\t.rodata\n";
-// emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
-// O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
-// << *CP[i] << "\n";
-// //emitGlobalConstant(CP[i]);
-// }
+ for (unsigned i = 0, e = CP.size(); i != e; ++i) {
+ O << "\t.section\t.rodata\n";
+ emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
+ O << "$CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
+ << *CP[i] << "\n";
+ emitGlobalConstant(CP[i]);
+ }
}
bool AlphaAsmPrinter::doInitialization(Module &M)