aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r--lib/AST/DeclObjC.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index 0b73ca5b57..6e348cab08 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -110,9 +110,10 @@ ObjCCompatibleAliasDecl::Create(ASTContext &C,
}
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 @@ ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() {
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*));
-}
-