mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Revert part of r218041.
The patch moved some logic around in an attempt to generate potentially more DW_AT_declaration attributes. The patch was flawed though and it stopped generating the attribute in some cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218060 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1681,6 +1681,9 @@ void DwarfCompileUnit::createGlobalVariableDIE(DIGlobalVariable GV) {
|
|||||||
VariableSpecDIE = &createAndAddDIE(dwarf::DW_TAG_variable, UnitDie);
|
VariableSpecDIE = &createAndAddDIE(dwarf::DW_TAG_variable, UnitDie);
|
||||||
addDIEEntry(*VariableSpecDIE, dwarf::DW_AT_specification, *VariableDIE);
|
addDIEEntry(*VariableSpecDIE, dwarf::DW_AT_specification, *VariableDIE);
|
||||||
addBlock(*VariableSpecDIE, dwarf::DW_AT_location, Loc);
|
addBlock(*VariableSpecDIE, dwarf::DW_AT_location, Loc);
|
||||||
|
// A static member's declaration is already flagged as such.
|
||||||
|
if (!SDMDecl.Verify())
|
||||||
|
addFlag(*VariableDIE, dwarf::DW_AT_declaration);
|
||||||
} else {
|
} else {
|
||||||
addBlock(*VariableDIE, dwarf::DW_AT_location, Loc);
|
addBlock(*VariableDIE, dwarf::DW_AT_location, Loc);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user