There is no need to force an line number entry (using previous location) for a temp...
authorDevang Patel <dpatel@apple.com>
Wed, 26 May 2010 21:23:46 +0000 (21:23 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 26 May 2010 21:23:46 +0000 (21:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104740 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 9aee5937dd0dee7f5e7eee28950e96d708f3a1a6..acc168e691881b09285f115d59d94908ee7c1828 100644 (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;
   }