summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 08:28:48 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 08:28:48 +0000
commit6b4205aa44094f96115be72dd23aaf47a0257d2f (patch)
tree26f828903d25c6768515d713dafb123fe341982d /lib/ExecutionEngine
parent1d72a7661611395a1c4fd3a88a2151921180e510 (diff)
downloadllvm-6b4205aa44094f96115be72dd23aaf47a0257d2f.tar.gz
llvm-6b4205aa44094f96115be72dd23aaf47a0257d2f.tar.bz2
llvm-6b4205aa44094f96115be72dd23aaf47a0257d2f.tar.xz
fix these two get the mcsymbol operand instead of imm operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
index 7baf053e99..2f42e6bfe6 100644
--- a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
@@ -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;