[llvm-commits] [llvm] r104740 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Wed May 26 14:23:47 PDT 2010
Author: dpatel
Date: Wed May 26 16:23:46 2010
New Revision: 104740
URL: http://llvm.org/viewvc/llvm-project?rev=104740&view=rev
Log:
There is no need to force an line number entry (using previous location) for a temp label at unknown location.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=104740&r1=104739&r2=104740&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed May 26 16:23:46 2010
@@ -2289,12 +2289,11 @@
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;
}
More information about the llvm-commits
mailing list