forked from OSchip/llvm-project
Check isInlinedSubroutine() before creating DW_TAG_inlined_subroutine.
llvm-svn: 69202
This commit is contained in:
parent
439a3e4106
commit
70307db0d5
|
@ -2091,7 +2091,8 @@ private:
|
|||
ConstructDbgScope(Scope, ParentStartID, ParentEndID, ParentDie, Unit);
|
||||
} else {
|
||||
DIE *ScopeDie = NULL;
|
||||
if (MainCU && TAI->doesDwarfUsesInlineInfoSection()) {
|
||||
if (MainCU && TAI->doesDwarfUsesInlineInfoSection()
|
||||
&& Scope->isInlinedSubroutine()) {
|
||||
ScopeDie = new DIE(DW_TAG_inlined_subroutine);
|
||||
DIE *Origin = MainCU->getDieMapSlotFor(Scope->getDesc().getGV());
|
||||
AddDIEntry(ScopeDie, DW_AT_abstract_origin, DW_FORM_ref4, Origin);
|
||||
|
|
Loading…
Reference in New Issue