summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-23 05:03:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-23 05:03:23 +0000
commit1ed412cb72c3e0a6d5cfeaf756ab1fd014f1844b (patch)
tree3d8e2eb35b7ecb1e7ff0c958ada5eab486654a97
parente4dfe5d46fb263d0a826529041e31d15e5e8be96 (diff)
downloadllvm-1ed412cb72c3e0a6d5cfeaf756ab1fd014f1844b.tar.gz
llvm-1ed412cb72c3e0a6d5cfeaf756ab1fd014f1844b.tar.bz2
llvm-1ed412cb72c3e0a6d5cfeaf756ab1fd014f1844b.tar.xz
Rename a couple of variables to be more accurate.
It's not really a "ScopeDIE", as such - it's the abstract function definition's DIE. And we usually use "SP" for subprograms, rather than "Sub". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209499 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 44aa529cfa..06331e44d9 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -521,19 +521,19 @@ void DwarfDebug::constructAbstractSubprogramScopeDIE(DwarfCompileUnit &TheCU,
assert(Scope->isAbstractScope());
assert(!Scope->getInlinedAt());
- DISubprogram Sub(Scope->getScopeNode());
+ DISubprogram SP(Scope->getScopeNode());
- if (!ProcessedSPNodes.insert(Sub))
+ if (!ProcessedSPNodes.insert(SP))
return;
// Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram
// was inlined from another compile unit.
- DwarfCompileUnit &SPCU = *SPMap[Sub];
- DIE *ScopeDIE = SPCU.getDIE(Sub);
- assert(ScopeDIE);
- AbstractSPDies.insert(std::make_pair(Sub, ScopeDIE));
- SPCU.addUInt(*ScopeDIE, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
- createAndAddScopeChildren(SPCU, Scope, *ScopeDIE);
+ DwarfCompileUnit &SPCU = *SPMap[SP];
+ DIE *AbsDef = SPCU.getDIE(SP);
+ assert(AbsDef);
+ AbstractSPDies.insert(std::make_pair(SP, AbsDef));
+ SPCU.addUInt(*AbsDef, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
+ createAndAddScopeChildren(SPCU, Scope, *AbsDef);
}
DIE &DwarfDebug::constructSubprogramScopeDIE(DwarfCompileUnit &TheCU,