mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
Do not eagerly record known previous location. DBG_VALUE may not cause a new label due to one or other reason.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cdb7e22aa
commit
24c20e2435
@ -2051,7 +2051,6 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
|||||||
// Check and update last known location info.
|
// Check and update last known location info.
|
||||||
if(DILoc.getNode() == PrevDILoc)
|
if(DILoc.getNode() == PrevDILoc)
|
||||||
return;
|
return;
|
||||||
PrevDILoc = DILoc.getNode();
|
|
||||||
|
|
||||||
// DBG_VALUE instruction establishes new value.
|
// DBG_VALUE instruction establishes new value.
|
||||||
if (MI->isDebugValue()) {
|
if (MI->isDebugValue()) {
|
||||||
@ -2061,6 +2060,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
|||||||
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
|
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
|
||||||
DILoc.getColumnNumber(),
|
DILoc.getColumnNumber(),
|
||||||
DILoc.getScope().getNode());
|
DILoc.getScope().getNode());
|
||||||
|
PrevDILoc = DILoc.getNode();
|
||||||
DI->second->setDbgValueLabel(Label);
|
DI->second->setDbgValueLabel(Label);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -2071,6 +2071,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
|||||||
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
|
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
|
||||||
DILoc.getColumnNumber(),
|
DILoc.getColumnNumber(),
|
||||||
DILoc.getScope().getNode());
|
DILoc.getScope().getNode());
|
||||||
|
PrevDILoc = DILoc.getNode();
|
||||||
|
|
||||||
// update DbgScope if this instruction starts a new scope.
|
// update DbgScope if this instruction starts a new scope.
|
||||||
InsnToDbgScopeMapTy::iterator I = DbgScopeBeginMap.find(MI);
|
InsnToDbgScopeMapTy::iterator I = DbgScopeBeginMap.find(MI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user