projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4ece4e2
)
If subprogram die is not available then construct new one.
author
Devang Patel
<dpatel@apple.com>
Mon, 5 Oct 2009 23:59:00 +0000
(23:59 +0000)
committer
Devang Patel
<dpatel@apple.com>
Mon, 5 Oct 2009 23:59:00 +0000
(23:59 +0000)
This can happen if debug info is processed lazily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83347
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 2aff2f2593b624caa907d5cae8b6de4823cc79d2..b80d2e75aadfef21e8baa10d6620da9840b16baf 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-1464,6
+1464,10
@@
void DwarfDebug::ConstructFunctionDbgScope(DbgScope *RootScope,
// Get the subprogram die.
DIE *SPDie = ModuleCU->getDieMapSlotFor(SPD.getNode());
+ if (!SPDie) {
+ ConstructSubprogram(SPD.getNode());
+ SPDie = ModuleCU->getDieMapSlotFor(SPD.getNode());
+ }
assert(SPDie && "Missing subprogram descriptor");
if (!AbstractScope) {