summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-21 22:41:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-21 22:41:17 +0000
commit825bdd2fc617f6cee911677d18c3b89301ae7ab9 (patch)
tree218a2074fc6fc225034e03b8879e31e68f508834 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parentb4d53f1afa36283fcb8121d9574c576d48038421 (diff)
downloadbcm5719-llvm-825bdd2fc617f6cee911677d18c3b89301ae7ab9.tar.gz
bcm5719-llvm-825bdd2fc617f6cee911677d18c3b89301ae7ab9.zip
DebugInfo: Ensure concrete out of line variables from inlined functions reference their abstract origins.
llvm-svn: 209327
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index b2e16074f51..aa18e7c3456 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -199,7 +199,7 @@ class DwarfDebug : public AsmPrinterHandler {
ScopeVariablesMap ScopeVariables;
// Collection of abstract variables.
- DenseMap<const MDNode *, DbgVariable *> AbstractVariables;
+ DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> AbstractVariables;
// Collection of DebugLocEntry. Stored in a linked list so that DIELocLists
// can refer to them in spite of insertions into this list.
@@ -336,6 +336,7 @@ class DwarfDebug : public AsmPrinterHandler {
/// \brief Find abstract variable associated with Var.
DbgVariable *findAbstractVariable(DIVariable &Var, DebugLoc Loc);
+ DbgVariable *findAbstractVariable(DIVariable &Var, const MDNode *Scope);
/// \brief Find DIE for the given subprogram and attach appropriate
/// DW_AT_low_pc and DW_AT_high_pc attributes. If there are global
OpenPOWER on IntegriCloud