Print the Constant pool
authorAndrew Lenharth <andrewl@lenharth.org>
Tue, 1 Feb 2005 20:38:53 +0000 (20:38 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Tue, 1 Feb 2005 20:38:53 +0000 (20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaAsmPrinter.cpp

index aaa5a5431506e1cac2fdcae1c58ad0c18c8a3ac0..5e316120ffb1d1545dd53180df83c120bec43741 100644 (file)
@@ -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)