diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-28 01:53:00 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-28 01:53:00 +0000 |
commit | abeca44d6387930b9ceadc51260f3d58bdc402ea (patch) | |
tree | 76964e44c5f7b685cdd427e189b535b34a925d70 /lib/ExecutionEngine/JIT | |
parent | 9882007003b12466df717cdf66824120ede405be (diff) | |
download | external_llvm-abeca44d6387930b9ceadc51260f3d58bdc402ea.zip external_llvm-abeca44d6387930b9ceadc51260f3d58bdc402ea.tar.gz external_llvm-abeca44d6387930b9ceadc51260f3d58bdc402ea.tar.bz2 |
Remove dead store and simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp index 0193486..c1051a9 100644 --- a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp @@ -429,13 +429,12 @@ unsigned char* JITDwarfEmitter::EmitExceptionTable(MachineFunction* MF, // Asm->EOL("Region start"); - if (!S.EndLabel) { + if (!S.EndLabel) EndLabelPtr = (intptr_t)EndFunction; - JCE->emitInt32((intptr_t)EndFunction - BeginLabelPtr); - } else { + else EndLabelPtr = JCE->getLabelAddress(S.EndLabel); - JCE->emitInt32(EndLabelPtr - BeginLabelPtr); - } + + JCE->emitInt32(EndLabelPtr - BeginLabelPtr); //Asm->EOL("Region length"); if (!S.PadLabel) { |