fix these two get the mcsymbol operand instead of imm operand.

llvm-svn: 98487
This commit is contained in:
Chris Lattner 2010-03-14 08:28:48 +00:00
parent 073d817958
commit f1c2b9d3b1
1 changed files with 2 additions and 5 deletions

View File

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