projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ccce99
)
Minimize the scope of some variables, NFC.
author
David Blaikie
<dblaikie@gmail.com>
Tue, 28 Oct 2014 02:57:26 +0000
(
02:57
+0000)
committer
David Blaikie
<dblaikie@gmail.com>
Tue, 28 Oct 2014 02:57:26 +0000
(
02:57
+0000)
llvm-svn: 220759
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index
68f1027
..
f9ef6d0
100644
(file)
--- a/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-795,14
+795,14
@@
void DwarfDebug::collectVariableInfoFromMMITable(
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();