[llvm-commits] [llvm] r100134 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Thu Apr 1 13:22:45 PDT 2010
Author: dpatel
Date: Thu Apr 1 15:22:44 2010
New Revision: 100134
URL: http://llvm.org/viewvc/llvm-project?rev=100134&view=rev
Log:
Do not eagerly record known previous location. DBG_VALUE may not cause a new label due to one or other reason.
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=100134&r1=100133&r2=100134&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Apr 1 15:22:44 2010
@@ -2051,7 +2051,6 @@
// Check and update last known location info.
if(DILoc.getNode() == PrevDILoc)
return;
- PrevDILoc = DILoc.getNode();
// DBG_VALUE instruction establishes new value.
if (MI->isDebugValue()) {
@@ -2061,6 +2060,7 @@
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
DILoc.getColumnNumber(),
DILoc.getScope().getNode());
+ PrevDILoc = DILoc.getNode();
DI->second->setDbgValueLabel(Label);
}
return;
@@ -2071,6 +2071,7 @@
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
DILoc.getColumnNumber(),
DILoc.getScope().getNode());
+ PrevDILoc = DILoc.getNode();
// update DbgScope if this instruction starts a new scope.
InsnToDbgScopeMapTy::iterator I = DbgScopeBeginMap.find(MI);
More information about the llvm-commits
mailing list