mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +00:00
There is no need to force an line number entry (using previous location) for a temp label at unknown location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d717c7d99
commit
77051f58e9
@ -2289,12 +2289,11 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If location is unknown then Use last known location for this DBG_VALUE
|
||||
// If location is unknown then use temp label for this DBG_VALUE
|
||||
// instruction.
|
||||
if (MI->isDebugValue()) {
|
||||
const MDNode *Scope =
|
||||
PrevInstLoc.getScope(Asm->MF->getFunction()->getContext());
|
||||
PrevLabel = recordSourceLine(PrevInstLoc.getLine(), PrevInstLoc.getCol(), Scope);
|
||||
PrevLabel = MMI->getContext().CreateTempSymbol();
|
||||
Asm->OutStreamer.EmitLabel(PrevLabel);
|
||||
LabelsBeforeInsn[MI] = PrevLabel;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user