aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-12-13 22:43:07 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-12-13 22:43:07 +0000
commit01bc2b39a4cbe76537e11411038bb834bceaf8a0 (patch)
tree4b163d3cd0f22d5650bf9503c5e16169229c12f0 /lib/CodeGen/AsmPrinter
parent05bc091336fa31dd0fe62058ae273900d9f8c8ec (diff)
downloadexternal_llvm-01bc2b39a4cbe76537e11411038bb834bceaf8a0.zip
external_llvm-01bc2b39a4cbe76537e11411038bb834bceaf8a0.tar.gz
external_llvm-01bc2b39a4cbe76537e11411038bb834bceaf8a0.tar.bz2
Debug Info: add support to mark member variables as artificial
This is the LLVM portion of r170154. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index f0ea889..83dfa54 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1559,6 +1559,9 @@ DIE *CompileUnit::createMemberDIE(DIDerivedType DT) {
MemberDie->addValue(dwarf::DW_AT_APPLE_property, dwarf::DW_FORM_ref4,
PropertyDie);
+ if (DT.isArtificial())
+ addFlag(MemberDie, dwarf::DW_AT_artificial);
+
// This is only for backward compatibility.
StringRef PropertyName = DT.getObjCPropertyName();
if (!PropertyName.empty()) {