diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-15 19:42:57 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-15 19:42:57 +0000 |
commit | 70307db0d536fda238a6b776c9fa2b17851eeff4 (patch) | |
tree | c308e34233df61baff36ed2063e24ab65a853a89 /llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | 439a3e4106af56e2d0d7902d1fe8715dd30e2428 (diff) | |
download | bcm5719-llvm-70307db0d536fda238a6b776c9fa2b17851eeff4.tar.gz bcm5719-llvm-70307db0d536fda238a6b776c9fa2b17851eeff4.zip |
Check isInlinedSubroutine() before creating DW_TAG_inlined_subroutine.
llvm-svn: 69202
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 597f925f51c..d30e909d83a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -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); |