[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Feb 1 12:39:06 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaAsmPrinter.cpp updated: 1.3 -> 1.4
---
Log message:
Print the Constant pool
---
Diffs of the changes: (+7 -8)
AlphaAsmPrinter.cpp | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.3 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.4
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.3 Tue Jan 25 13:58:40 2005
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp Tue Feb 1 14:38:53 2005
@@ -211,14 +211,13 @@
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)
More information about the llvm-commits
mailing list