summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-04-11 23:40:25 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-04-11 23:40:25 +0000
commit4572b4557460c7459aee87dc631f5ed267a15dde (patch)
tree2eac2a2bde6a0e72166ee0b53253e2638ba0feef /clang/lib/AST/DeclObjC.cpp
parent8784a7c006b9b2bad02aef54f64ee2875daeb145 (diff)
downloadbcm5719-llvm-4572b4557460c7459aee87dc631f5ed267a15dde.tar.gz
bcm5719-llvm-4572b4557460c7459aee87dc631f5ed267a15dde.zip
AST generation for objc2's property declarations.
llvm-svn: 49565
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp15
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*));
-}
-
OpenPOWER on IntegriCloud