There is no need to force an line number entry (using previous location) for a temp label at unknown location.

llvm-svn: 104740
This commit is contained in:
Devang Patel 2010-05-26 21:23:46 +00:00
parent b0e28471a6
commit acc32a5c19
1 changed files with 3 additions and 4 deletions

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