From a21bbb24237c5672eb42ff3a07d4b18760992ecb Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Sat, 4 Feb 2012 01:15:04 +0000 Subject: [PATCH] Create new tag for the property. This is a work in progress. llvm-svn: 149734 --- clang/lib/CodeGen/CGDebugInfo.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 97cf26673df9..9f9d5c4b4941 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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,