mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Add comment describing what's going on here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -307,8 +307,11 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(CompileUnit *SPCU,
|
||||
assert(SPDie && "Unable to find subprogram DIE!");
|
||||
DISubprogram SP(SPNode);
|
||||
|
||||
// Pick up abstract subprogram DIE.
|
||||
// If we're updating an abstract DIE, then we will be adding the children and
|
||||
// object pointer later on. But what we don't want to do is process the
|
||||
// concrete DIE twice.
|
||||
if (DIE *AbsSPDIE = AbstractSPDies.lookup(SPNode)) {
|
||||
// Pick up abstract subprogram DIE.
|
||||
SPDie = new DIE(dwarf::DW_TAG_subprogram);
|
||||
SPCU->addDIEEntry(SPDie, dwarf::DW_AT_abstract_origin,
|
||||
dwarf::DW_FORM_ref4, AbsSPDIE);
|
||||
|
||||
Reference in New Issue
Block a user