mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
If subprogram die is not available then construct new one.
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
This commit is contained in:
@@ -1464,6 +1464,10 @@ void DwarfDebug::ConstructFunctionDbgScope(DbgScope *RootScope,
|
|||||||
|
|
||||||
// Get the subprogram die.
|
// Get the subprogram die.
|
||||||
DIE *SPDie = ModuleCU->getDieMapSlotFor(SPD.getNode());
|
DIE *SPDie = ModuleCU->getDieMapSlotFor(SPD.getNode());
|
||||||
|
if (!SPDie) {
|
||||||
|
ConstructSubprogram(SPD.getNode());
|
||||||
|
SPDie = ModuleCU->getDieMapSlotFor(SPD.getNode());
|
||||||
|
}
|
||||||
assert(SPDie && "Missing subprogram descriptor");
|
assert(SPDie && "Missing subprogram descriptor");
|
||||||
|
|
||||||
if (!AbstractScope) {
|
if (!AbstractScope) {
|
||||||
|
Reference in New Issue
Block a user