From: Devang Patel Date: Wed, 26 May 2010 21:23:46 +0000 (+0000) Subject: There is no need to force an line number entry (using previous location) for a temp... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=77051f58e9417670c66d7b7f420a98ef46dbcdc6;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9aee5937dd0..acc168e6918 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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; }