aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-04-15 19:42:57 +0000
committerDevang Patel <dpatel@apple.com>2009-04-15 19:42:57 +0000
commitc782ad055e7d1ed11bf0b7cbd17b5a8b6efdde7e (patch)
treef6dd54ee85b9d8f9407b0f60a48fb584a4fbdeff /lib
parent9407cd4ede3e2c090b958778d0fdbdac8b2dbec4 (diff)
downloadexternal_llvm-c782ad055e7d1ed11bf0b7cbd17b5a8b6efdde7e.zip
external_llvm-c782ad055e7d1ed11bf0b7cbd17b5a8b6efdde7e.tar.gz
external_llvm-c782ad055e7d1ed11bf0b7cbd17b5a8b6efdde7e.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')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp3
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);