mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
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
This commit is contained in:
parent
3765b7c1a0
commit
f5d7f9cafd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user