aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-04-23 00:06:01 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-04-23 00:06:01 +0000
commit628b96f34e93b643b6e15e75eabb8d96079a7e27 (patch)
treef165388e7343cdf09821dc06855ec5980e7eb66a /lib/AST/DeclObjC.cpp
parent8b9045574329ebac6270dfab7ebadce3179bced1 (diff)
Patch to build AST for property implementation declarations and
to print declaration from its AST. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r--lib/AST/DeclObjC.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index d3592e1416..ef4a6e1c3d 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -517,5 +517,14 @@ ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() {
return 0;
}
+ObjCPropertyImplDecl *ObjCPropertyImplDecl::Create(ASTContext &C,
+ SourceLocation atLoc,
+ SourceLocation L,
+ ObjCPropertyDecl *property,
+ PropertyImplKind kind,
+ ObjCIvarDecl *ivar) {
+ void *Mem = C.getAllocator().Allocate<ObjCPropertyImplDecl>();
+ return new (Mem) ObjCPropertyImplDecl(atLoc, L, property, kind, ivar);
+}