diff options
author | Devang Patel <dpatel@apple.com> | 2012-02-04 01:15:04 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2012-02-04 01:15:04 +0000 |
commit | 693a70dfb1515cb62178861fb6c318c0ff484130 (patch) | |
tree | c6e0360e187b5f3f9702ae697944a5245febf484 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 1836db0f2c7527ac11af0044ab89150f9aaf22e1 (diff) |
Create new tag for the property. This is a work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 97cf26673d..9f9d5c4b49 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1353,6 +1353,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, StringRef PropertySetter; unsigned PropertyAttributes = 0; ObjCPropertyDecl *PD = NULL; + llvm::MDNode *PropertyNode = NULL; if (ImpD) if (ObjCPropertyImplDecl *PImpD = ImpD->FindPropertyImplIvarDecl(Field->getIdentifier())) @@ -1362,7 +1363,12 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, PropertyGetter = getSelectorName(PD->getGetterName()); PropertySetter = getSelectorName(PD->getSetterName()); PropertyAttributes = PD->getPropertyAttributes(); - } + PropertyNode = + DBuilder.createObjCProperty(PropertyName, PropertyGetter, + PropertySetter, + PropertyAttributes); + EltTys.push_back(PropertyNode); + } FieldTy = DBuilder.createObjCIVar(FieldName, FieldDefUnit, FieldLine, FieldSize, FieldAlign, FieldOffset, Flags, FieldTy, |