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:
Devang Patel 2010-05-26 21:23:46 +00:00
parent 8d717c7d99
commit 77051f58e9

View File

@ -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;
}