add two more Create methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48428 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index cd4c6ff..4f1671e 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -73,6 +73,21 @@
return new (Mem) ObjCCategoryDecl(L, Id);
}
+ObjCCategoryImplDecl *
+ObjCCategoryImplDecl::Create(ASTContext &C, SourceLocation L,IdentifierInfo *Id,
+ ObjCInterfaceDecl *ClassInterface) {
+ void *Mem = C.getAllocator().Allocate<ObjCCategoryImplDecl>();
+ return new (Mem) ObjCCategoryImplDecl(L, Id, ClassInterface);
+}
+
+ObjCImplementationDecl *
+ObjCImplementationDecl::Create(ASTContext &C, SourceLocation L,
+ IdentifierInfo *Id,
+ ObjCInterfaceDecl *ClassInterface,
+ ObjCInterfaceDecl *SuperDecl) {
+ void *Mem = C.getAllocator().Allocate<ObjCImplementationDecl>();
+ return new (Mem) ObjCImplementationDecl(L, Id, ClassInterface, SuperDecl);
+}
//===----------------------------------------------------------------------===//
// Objective-C Decl Implementation