Add inline subprogram names to the name lookup table since they may

not get there any other way.

llvm-svn: 145789
This commit is contained in:
Eric Christopher 2011-12-04 06:02:38 +00:00
parent 15a430a368
commit 8dda5d0f06
1 changed files with 4 additions and 0 deletions

View File

@ -442,6 +442,10 @@ DIE *DwarfDebug::constructInlinedScopeDIE(CompileUnit *TheCU,
TheCU->addUInt(ScopeDIE, dwarf::DW_AT_call_file, 0, TheCU->getID());
TheCU->addUInt(ScopeDIE, dwarf::DW_AT_call_line, 0, DL.getLineNumber());
// Add name to the name table, we do this here because we're guaranteed
// to have concrete versions of our DW_TAG_inlined_subprogram nodes.
addSubprogramNames(TheCU, InlinedSP, ScopeDIE);
return ScopeDIE;
}