]> granicus.if.org Git - clang/commitdiff
Create new tag for the property. This is a work in progress.
authorDevang Patel <dpatel@apple.com>
Sat, 4 Feb 2012 01:15:04 +0000 (01:15 +0000)
committerDevang Patel <dpatel@apple.com>
Sat, 4 Feb 2012 01:15:04 +0000 (01:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 97cf26673df99e1ccc8976b5daf40f0815261374..9f9d5c4b49412fc91f28c7fa3f9e78c00763350b 100644 (file)
@@ -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,