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 | c3b70f636f9965f0d1938dd645dd7f848804a1f1 (patch) | |
tree | 2ba9402698cb91f6757e8a1097175ed7d8236917 /llvm/lib/ExecutionEngine/JIT | |
parent | 5ca47a4bdc271ef2ab5c6b65d0025a3506cc23dc (diff) | |
download | bcm5719-llvm-c3b70f636f9965f0d1938dd645dd7f848804a1f1.tar.gz bcm5719-llvm-c3b70f636f9965f0d1938dd645dd7f848804a1f1.zip |
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.
llvm-svn: 98031
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp index 946351bde0a..da5435a0c70 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp +++ b/llvm/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; |