mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Debug Info: revert r222195, r222210 and r222239.
This is no longer needed after David's fix at r222377 + r222485. rdar://18958417 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -103,7 +103,7 @@ DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE(DIGlobalVariable GV) {
|
||||
|
||||
assert(GV.isGlobalVariable());
|
||||
|
||||
DIScope GVContext = DD->resolve(GV.getContext());
|
||||
DIScope GVContext = GV.getContext();
|
||||
DIType GTy = DD->resolve(GV.getType());
|
||||
|
||||
// Construct the context before querying for the existence of the DIE in
|
||||
@ -122,7 +122,7 @@ DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE(DIGlobalVariable GV) {
|
||||
DIE *VariableSpecDIE = getOrCreateStaticMemberDIE(SDMDecl);
|
||||
addDIEEntry(*VariableDIE, dwarf::DW_AT_specification, *VariableSpecDIE);
|
||||
} else {
|
||||
DeclContext = resolve(GV.getContext());
|
||||
DeclContext = GV.getContext();
|
||||
// Add name and type.
|
||||
addString(*VariableDIE, dwarf::DW_AT_name, GV.getDisplayName());
|
||||
addType(*VariableDIE, GTy);
|
||||
|
Reference in New Issue
Block a user