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 | 88bcc9edae209d39c4ca646406af5c5879d729c0 (patch) | |
tree | f6dd54ee85b9d8f9407b0f60a48fb584a4fbdeff /lib/CodeGen | |
parent | 3d88001b45157c4fe9c5ada554e7ddd7fe6fbce8 (diff) | |
download | external_llvm-88bcc9edae209d39c4ca646406af5c5879d729c0.zip external_llvm-88bcc9edae209d39c4ca646406af5c5879d729c0.tar.gz external_llvm-88bcc9edae209d39c4ca646406af5c5879d729c0.tar.bz2 |
Check isInlinedSubroutine() before creating DW_TAG_inlined_subroutine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 597f925..d30e909 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/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); |