mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
fix these two get the mcsymbol operand instead of imm operand.
llvm-svn: 98487
This commit is contained in:
parent
3eb55835b5
commit
e939096a3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user