diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-24 00:43:47 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-24 00:43:47 +0000 |
commit | f4c504e03c6fe4394cdf22caf428667a2f2a5fce (patch) | |
tree | 48ad875affa46e05e15a1652e3d3dc743db7ba35 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 26f63f77cdfe7cc952f5937d000ca3720ed508de (diff) | |
download | bcm5719-llvm-f4c504e03c6fe4394cdf22caf428667a2f2a5fce.tar.gz bcm5719-llvm-f4c504e03c6fe4394cdf22caf428667a2f2a5fce.zip |
DebugInfo: Remove DwarfDebug::addScopeVariable now that it's just a trivial wrapper
llvm-svn: 220542
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 12915d8a48b..5fcc28e3fb3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -770,7 +770,7 @@ DbgVariable *DwarfDebug::getExistingAbstractVariable(const DIVariable &DV) { void DwarfDebug::createAbstractVariable(const DIVariable &Var, LexicalScope *Scope) { auto AbsDbgVariable = make_unique<DbgVariable>(Var, DIExpression(), this); - InfoHolder.addNonArgumentScopeVariable(Scope, AbsDbgVariable.get()); + InfoHolder.addScopeVariable(Scope, AbsDbgVariable.get()); AbstractVariables[Var] = std::move(AbsDbgVariable); } @@ -813,7 +813,7 @@ void DwarfDebug::collectVariableInfoFromMMITable( ConcreteVariables.push_back(make_unique<DbgVariable>(DV, Expr, this)); DbgVariable *RegVar = ConcreteVariables.back().get(); RegVar->setFrameIndex(VI.Slot); - addScopeVariable(Scope, RegVar); + InfoHolder.addScopeVariable(Scope, RegVar); } } @@ -993,7 +993,7 @@ DwarfDebug::collectVariableInfo(DwarfCompileUnit &TheCU, DISubprogram SP, ensureAbstractVariableIsCreatedIfScoped(DV, Scope->getScopeNode()); ConcreteVariables.push_back(make_unique<DbgVariable>(MInsn, this)); DbgVariable *RegVar = ConcreteVariables.back().get(); - addScopeVariable(Scope, RegVar); + InfoHolder.addScopeVariable(Scope, RegVar); // Check if the first DBG_VALUE is valid for the rest of the function. if (Ranges.size() == 1 && Ranges.front().second == nullptr) @@ -1023,7 +1023,7 @@ DwarfDebug::collectVariableInfo(DwarfCompileUnit &TheCU, DISubprogram SP, ensureAbstractVariableIsCreatedIfScoped(DV, Scope->getScopeNode()); DIExpression NoExpr; ConcreteVariables.push_back(make_unique<DbgVariable>(DV, NoExpr, this)); - addScopeVariable(Scope, ConcreteVariables.back().get()); + InfoHolder.addScopeVariable(Scope, ConcreteVariables.back().get()); } } } @@ -1253,10 +1253,6 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { } } -void DwarfDebug::addScopeVariable(LexicalScope *LS, DbgVariable *Var) { - InfoHolder.addNonArgumentScopeVariable(LS, Var); -} - // Gather and emit post-function debug information. void DwarfDebug::endFunction(const MachineFunction *MF) { assert(CurFn == MF && |