diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-23 05:03:23 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-23 05:03:23 +0000 |
commit | 486022557031766cf2818cea94013a457eea0486 (patch) | |
tree | 672455c4ab682ec22087ce139e61afa0399babfa /llvm/lib/CodeGen | |
parent | 96fb9024f2353f2215549372a30faf445533879c (diff) | |
download | bcm5719-llvm-486022557031766cf2818cea94013a457eea0486.tar.gz bcm5719-llvm-486022557031766cf2818cea94013a457eea0486.zip |
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".
llvm-svn: 209499
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 44aa529cfa4..06331e44d91 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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, |