fix these two get the mcsymbol operand instead of imm operand.
authorChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2010 08:28:48 +0000 (08:28 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2010 08:28:48 +0000 (08:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98487 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp

index 7baf053e99f952b1069bcada1468a485c612845c..2f42e6bfe6d914c82a83c172f26f7bc60a08825d 100644 (file)
@@ -316,8 +316,7 @@ unsigned char* JITDwarfEmitter::EmitExceptionTable(MachineFunction* MF,
         continue;
       }
 
-      unsigned BeginLabelID = MI->getOperand(0).getImm();
-      MCSymbol *BeginLabel = MMI->getLabelSym(BeginLabelID);
+      MCSymbol *BeginLabel = MI->getOperand(0).getMCSymbol();
       assert(BeginLabel && "Invalid label!");
 
       if (BeginLabel == LastLabel)
@@ -898,9 +897,7 @@ JITDwarfEmitter::GetExceptionTableSizeInBytes(MachineFunction* MF) const {
         continue;
       }
 
-      unsigned BeginLabelID = MI->getOperand(0).getImm();
-      assert(BeginLabelID && "Invalid label!");
-      MCSymbol *BeginLabel = MMI->getLabelSym(BeginLabelID);
+      MCSymbol *BeginLabel = MI->getOperand(0).getMCSymbol();
       
       if (BeginLabel == LastLabel)
         MayThrow = false;