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
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index d3592e1..ef4a6e1 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -517,5 +517,14 @@
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);
+}