diff options
author | Frederic Riss <friss@apple.com> | 2014-09-18 16:41:04 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2014-09-18 16:41:04 +0000 |
commit | 0baab0cded04a00adefac8fd5730364f331e2c23 (patch) | |
tree | e5e822f90b4d716e0ece2f97e9d77c0372c2763d /llvm/lib | |
parent | 9db82cf45d7659eeb1823ec6f32c99938957d051 (diff) | |
download | bcm5719-llvm-0baab0cded04a00adefac8fd5730364f331e2c23.tar.gz bcm5719-llvm-0baab0cded04a00adefac8fd5730364f331e2c23.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 353e70b6e1e..8561b5dd4f4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -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); } |