OSDN Git Service

call emitconstantpool and emitjumptable like other targets.
authorChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 22:06:58 +0000 (22:06 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 22:06:58 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94601 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp

index 4748cc5..3f832c8 100644 (file)
@@ -142,6 +142,10 @@ bool MSP430AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   if (MAI->hasDotTypeDotSizeDirective())
     O << "\t.size\t" << *CurrentFnSym << ", .-" << *CurrentFnSym << '\n';
 
+  // Print out constants referenced by the function
+  EmitConstantPool(MF.getConstantPool());
+  EmitJumpTableInfo(MF);
+  
   // We didn't modify anything
   return false;
 }