mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
Include inlined function in list of processed subprograms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d459f457b8
commit
0dd4558e7d
@ -1386,7 +1386,6 @@ static bool isSubprogramContext(const MDNode *Context) {
|
||||
/// If there are global variables in this scope then create and insert
|
||||
/// DIEs for these variables.
|
||||
DIE *DwarfDebug::updateSubprogramScopeDIE(const MDNode *SPNode) {
|
||||
ProcessedSPNodes.insert(SPNode);
|
||||
CompileUnit *SPCU = getCompileUnit(SPNode);
|
||||
DIE *SPDie = SPCU->getDIE(SPNode);
|
||||
assert(SPDie && "Unable to find subprogram DIE!");
|
||||
@ -1692,6 +1691,7 @@ DIE *DwarfDebug::constructScopeDIE(DbgScope *Scope) {
|
||||
if (Scope->getInlinedAt())
|
||||
ScopeDIE = constructInlinedScopeDIE(Scope);
|
||||
else if (DS.isSubprogram()) {
|
||||
ProcessedSPNodes.insert(DS);
|
||||
if (Scope->isAbstractScope())
|
||||
ScopeDIE = getCompileUnit(DS)->getDIE(DS);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user