diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-04-18 00:56:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-04-18 00:56:05 +0000 |
commit | 268195e1d4b5bd651654505e51a204f07bfec7b6 (patch) | |
tree | 039025c4c0f1485609a4c15da770701fd7e78671 /llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | |
parent | 47d742000b60a22678f2ee505b39b00674aa0595 (diff) | |
download | bcm5719-llvm-268195e1d4b5bd651654505e51a204f07bfec7b6.tar.gz bcm5719-llvm-268195e1d4b5bd651654505e51a204f07bfec7b6.zip |
Don't rely upon the MCSymbol "isDefined" method to indicate if a label has been
emitted or not. The JIT doesn't set that. Look it up in the label location table
instead.
llvm-svn: 101686
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp index 281ec7387f7..4b3ca8759b8 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp @@ -75,7 +75,7 @@ JITDwarfEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, MCSymbol *Label = Move.getLabel(); // Throw out move if the label is invalid. - if (Label && !Label->isDefined()) + if (Label && (*JCE->getLabelLocations())[Label] == 0) continue; intptr_t LabelPtr = 0; @@ -711,7 +711,7 @@ JITDwarfEmitter::GetFrameMovesSizeInBytes(intptr_t BaseLabelPtr, MCSymbol *Label = Move.getLabel(); // Throw out move if the label is invalid. - if (Label && !Label->isDefined()) + if (Label && (*JCE->getLabelLocations())[Label] == 0) continue; intptr_t LabelPtr = 0; |