mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69c128f19d
commit
091fc4b556
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user