mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Check isInlinedSubroutine() before creating DW_TAG_inlined_subroutine.
llvm-svn: 69202
This commit is contained in:
parent
420019a18a
commit
d9d88a827d
@ -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…
x
Reference in New Issue
Block a user