mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
DebugInfo: Attach DW_AT_inline to inlined subprograms at DIE-construction time rather than as a post-processing step.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b572bc1ccf
commit
03e19bb235
@ -495,6 +495,7 @@ DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU,
|
||||
}
|
||||
|
||||
InlinedSubprogramDIEs.insert(OriginDIE);
|
||||
TheCU.addUInt(*OriginDIE, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
|
||||
|
||||
// Add the call site information to the DIE.
|
||||
DILocation DL(Scope->getInlinedAt());
|
||||
@ -857,10 +858,6 @@ void DwarfDebug::beginModule() {
|
||||
|
||||
// Attach DW_AT_inline attribute with inlined subprogram DIEs.
|
||||
void DwarfDebug::computeInlinedDIEs() {
|
||||
// Attach DW_AT_inline attribute with inlined subprogram DIEs.
|
||||
for (DIE *ISP : InlinedSubprogramDIEs)
|
||||
FirstCU->addUInt(*ISP, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
|
||||
|
||||
for (const auto &AI : AbstractSPDies) {
|
||||
DIE &ISP = *AI.second;
|
||||
if (InlinedSubprogramDIEs.count(&ISP))
|
||||
|
Loading…
x
Reference in New Issue
Block a user