projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9407cd4
)
Check isInlinedSubroutine() before creating DW_TAG_inlined_subroutine.
author
Devang Patel
<dpatel@apple.com>
Wed, 15 Apr 2009 19:42:57 +0000
(19:42 +0000)
committer
Devang Patel
<dpatel@apple.com>
Wed, 15 Apr 2009 19:42:57 +0000
(19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69202
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 597f925f51c163ce086fb72634aea0dcd3a4bb7a..d30e909d83aeba8b4ad019da9d05fb5c925de95b 100644
(file)
--- 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);