mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +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. llvm-svn: 218060
This commit is contained in:
parent
188a69d24d
commit
b1025475ae
@ -1681,6 +1681,9 @@ void DwarfCompileUnit::createGlobalVariableDIE(DIGlobalVariable GV) {
|
||||
VariableSpecDIE = &createAndAddDIE(dwarf::DW_TAG_variable, UnitDie);
|
||||
addDIEEntry(*VariableSpecDIE, dwarf::DW_AT_specification, *VariableDIE);
|
||||
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 {
|
||||
addBlock(*VariableDIE, dwarf::DW_AT_location, Loc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user