summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit20d8b2ff7175a4b47cf8782312ffda545dc11c57 (patch)
tree2c6f6112b2bab00e4480ea90ad9ddc0c4574ecac /llvm/lib
parent32124c0a70ef43c84536d3ef5d0915b8880182c5 (diff)
downloadbcm5719-llvm-20d8b2ff7175a4b47cf8782312ffda545dc11c57.tar.gz
bcm5719-llvm-20d8b2ff7175a4b47cf8782312ffda545dc11c57.zip
Print the Constant pool
llvm-svn: 19975
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
index aaa5a543150..5e316120ffb 100644
--- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud