Create new tag for the property. This is a work in progress.

llvm-svn: 149734
This commit is contained in:
Devang Patel 2012-02-04 01:15:04 +00:00
parent fcf8d1f82a
commit a21bbb2423
1 changed files with 7 additions and 1 deletions

View 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,