summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-10-24 17:57:34 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-10-24 17:57:34 +0000
commit80e5b1ebd1f25159f01f55f20e2992c316d3985a (patch)
tree19ef1023bff36f10c77fa56e5648fcc445cec000 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parent514253cf433f305e2844545330f80681e43ab9a6 (diff)
downloadbcm5719-llvm-80e5b1ebd1f25159f01f55f20e2992c316d3985a.tar.gz
bcm5719-llvm-80e5b1ebd1f25159f01f55f20e2992c316d3985a.zip
DebugInfo: Sink DwarfDebug::ScopeVariables down into DwarfFile
(part of refactoring to allow subprogram emission in both the skeleton and main units to enable -gmlt-like data to be included in the skeleton for live inlined backtracing purposes) llvm-svn: 220578
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index f1ee52da8d4..6fff9ecf290 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -530,7 +530,7 @@ DIE *DwarfCompileUnit::createScopeChildrenDIE(
unsigned *ChildScopeCount) {
DIE *ObjectPointer = nullptr;
- for (DbgVariable *DV : DD->getScopeVariables().lookup(Scope))
+ for (DbgVariable *DV : DU->getScopeVariables().lookup(Scope))
Children.push_back(constructVariableDIE(*DV, *Scope, ObjectPointer));
unsigned ChildCountWithoutScopes = Children.size();
OpenPOWER on IntegriCloud