summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT
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
commitf1c2b9d3b1e7185da7d747ee55ff3ba25f56d3f5 (patch)
tree67f45b733898f4e34145c03e48ea4d9d78815231 /llvm/lib/ExecutionEngine/JIT
parent073d817958e115d695af507457ac9c43cac81953 (diff)
downloadbcm5719-llvm-f1c2b9d3b1e7185da7d747ee55ff3ba25f56d3f5.tar.gz
bcm5719-llvm-f1c2b9d3b1e7185da7d747ee55ff3ba25f56d3f5.zip
fix these two get the mcsymbol operand instead of imm operand.
llvm-svn: 98487
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
index 7baf053e99f..2f42e6bfe6d 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud