diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-11 23:40:25 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-11 23:40:25 +0000 |
commit | dae1a1a2aa4f245b1958dc8db6089f24c575ef13 (patch) | |
tree | 1f7ac919a3f7a1140e32a69acac688228120841a /lib/AST/DeclObjC.cpp | |
parent | e7bd9c20a9310c625bef899dec977aba688db06a (diff) |
AST generation for objc2's property declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 15 |
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*)); -} - |