mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Do not eagerly record known previous location. DBG_VALUE may not cause a new label due to one or other reason.
llvm-svn: 100134
This commit is contained in:
parent
9307af84c2
commit
97a60f2ce5
@ -2051,7 +2051,6 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
||||
// 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 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
||||
MCSymbol *Label = recordSourceLine(DILoc.getLineNumber(),
|
||||
DILoc.getColumnNumber(),
|
||||
DILoc.getScope().getNode());
|
||||
PrevDILoc = DILoc.getNode();
|
||||
DI->second->setDbgValueLabel(Label);
|
||||
}
|
||||
return;
|
||||
@ -2071,6 +2071,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user