[llvm] r220759 - Minimize the scope of some variables, NFC.
David Blaikie
dblaikie at gmail.com
Mon Oct 27 19:57:27 PDT 2014
Author: dblaikie
Date: Mon Oct 27 21:57:26 2014
New Revision: 220759
URL: http://llvm.org/viewvc/llvm-project?rev=220759&view=rev
Log:
Minimize the scope of some variables, NFC.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=220759&r1=220758&r2=220759&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Oct 27 21:57:26 2014
@@ -795,14 +795,14 @@ void DwarfDebug::collectVariableInfoFrom
if (!VI.Var)
continue;
Processed.insert(VI.Var);
- DIVariable DV(VI.Var);
- DIExpression Expr(VI.Expr);
LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc);
// If variable scope is not found then skip this variable.
if (!Scope)
continue;
+ DIVariable DV(VI.Var);
+ DIExpression Expr(VI.Expr);
ensureAbstractVariableIsCreatedIfScoped(DV, Scope->getScopeNode());
ConcreteVariables.push_back(make_unique<DbgVariable>(DV, Expr, this));
DbgVariable *RegVar = ConcreteVariables.back().get();
More information about the llvm-commits
mailing list