From acc32a5c1976b21ef8fc0e40c2e0566212f43b25 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 26 May 2010 21:23:46 +0000 Subject: There is no need to force an line number entry (using previous location) for a temp label at unknown location. llvm-svn: 104740 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9aee5937dd0..acc168e6918 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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; } -- cgit v1.2.3