mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24:34 +00:00
Debug Info: In DIBuilder, the context field of subprogram is updated to use
DIScopeRef. A paired commit at clang is required due to changes to DIBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -393,9 +393,10 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(CompileUnit *SPCU,
|
||||
// function then gdb prefers the definition at top level and but does not
|
||||
// expect specification DIE in parent function. So avoid creating
|
||||
// specification DIE for a function defined inside a function.
|
||||
if (SP.isDefinition() && !SP.getContext().isCompileUnit() &&
|
||||
!SP.getContext().isFile() &&
|
||||
!isSubprogramContext(SP.getContext())) {
|
||||
DIScope SPContext = resolve(SP.getContext());
|
||||
if (SP.isDefinition() && !SPContext.isCompileUnit() &&
|
||||
!SPContext.isFile() &&
|
||||
!isSubprogramContext(SPContext)) {
|
||||
SPCU->addFlag(SPDie, dwarf::DW_AT_declaration);
|
||||
|
||||
// Add arguments.
|
||||
|
Reference in New Issue
Block a user