diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-23 00:06:01 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-23 00:06:01 +0000 |
commit | 628b96f34e93b643b6e15e75eabb8d96079a7e27 (patch) | |
tree | f165388e7343cdf09821dc06855ec5980e7eb66a /lib/AST/DeclObjC.cpp | |
parent | 8b9045574329ebac6270dfab7ebadce3179bced1 (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.cpp | 9 |
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); +} |