diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-01 20:22:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-01 20:22:44 +0000 |
commit | 15676e51676e989696a63326aa56e51af5ea5384 (patch) | |
tree | c583a4f20afc9d68f81ddf27e9f46bf6cf0d41ca /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 8563ee4ed429c8a2cd356f4b338e28f566a64756 (diff) | |
download | bcm5719-llvm-15676e51676e989696a63326aa56e51af5ea5384.tar.gz bcm5719-llvm-15676e51676e989696a63326aa56e51af5ea5384.zip |
Do not eagerly record known previous location. DBG_VALUE may not cause a new label due to one or other reason.
llvm-svn: 100134
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 45c8dadfbab..52c7089bb28 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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); |