diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-09 01:51:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-09 01:51:43 +0000 |
commit | a34ec2290fa441d312ac33a61e6ec6029259bdef (patch) | |
tree | 94840e08c17e355c5c7dd01f15e31e5b5efa570e /lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | |
parent | 23071ce80b86accb8a0870da7925531cb7063d53 (diff) |
strength reduce MMI::MappedLabel to MMI::isLabelDeleted,
and add a FIXME about how we are eventually going to zap this
lookup table once mc world domination is complete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp index 946351bde0..da5435a0c7 100644 --- a/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp @@ -75,10 +75,9 @@ JITDwarfEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, unsigned LabelID = Move.getLabelID(); if (LabelID) { - LabelID = MMI->MappedLabel(LabelID); - // Throw out move if the label is invalid. - if (!LabelID) continue; + if (MMI->isLabelDeleted(LabelID)) + continue; } intptr_t LabelPtr = 0; @@ -722,10 +721,9 @@ JITDwarfEmitter::GetFrameMovesSizeInBytes(intptr_t BaseLabelPtr, unsigned LabelID = Move.getLabelID(); if (LabelID) { - LabelID = MMI->MappedLabel(LabelID); - // Throw out move if the label is invalid. - if (!LabelID) continue; + if (MMI->isLabelDeleted(LabelID)) + continue; } intptr_t LabelPtr = 0; |