diff options
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 0b73ca5b578..6e348cab08b 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/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*)); -} - |