AST generation for objc2's property declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49565 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index 0b73ca5..6e348ca 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -110,9 +110,10 @@
}
ObjCPropertyDecl *ObjCPropertyDecl::Create(ASTContext &C,
- SourceLocation L) {
+ SourceLocation L,
+ QualType T) {
void *Mem = C.getAllocator().Allocate<ObjCPropertyDecl>();
- return new (Mem) ObjCPropertyDecl(L);
+ return new (Mem) ObjCPropertyDecl(L, T);
}
//===----------------------------------------------------------------------===//
@@ -432,15 +433,5 @@
return 0;
}
-void ObjCPropertyDecl::setPropertyDeclLists(ObjCIvarDecl **Properties,
- unsigned NumProp) {
- assert(PropertyDecls == 0 && "Properties already set");
- if (NumProp == 0) return;
- NumPropertyDecls = NumProp;
-
- PropertyDecls = new ObjCIvarDecl*[NumProp];
- memcpy(PropertyDecls, Properties, NumProp*sizeof(ObjCIvarDecl*));
-}
-