mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
The dwarf standard says that the only differences between a out-of-line
instance and a concrete inlined instance are the use of DW_TAG_subprogram instead of DW_TAG_inlined_subroutine and the who owns the tree. We were also omitting DW_AT_inline from the abstract roots. To fix this, make sure we mark abstract instance roots with DW_AT_inline even when we have only out-of-line instances referring to them with DW_AT_abstract_origin. FileCheck is not a very good tool for tests like this, maybe we should add a -verify mode to llvm-dwarfdump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -772,6 +772,13 @@ void DwarfDebug::endModule() {
|
||||
DIE *ISP = *AI;
|
||||
FirstCU->addUInt(ISP, dwarf::DW_AT_inline, 0, dwarf::DW_INL_inlined);
|
||||
}
|
||||
for (DenseMap<const MDNode *, DIE *>::iterator AI = AbstractSPDies.begin(),
|
||||
AE = AbstractSPDies.end(); AI != AE; ++AI) {
|
||||
DIE *ISP = AI->second;
|
||||
if (InlinedSubprogramDIEs.count(ISP))
|
||||
continue;
|
||||
FirstCU->addUInt(ISP, dwarf::DW_AT_inline, 0, dwarf::DW_INL_inlined);
|
||||
}
|
||||
|
||||
// Emit DW_AT_containing_type attribute to connect types with their
|
||||
// vtable holding type.
|
||||
|
Reference in New Issue
Block a user