summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-16 20:53:07 +0000
committerChris Lattner <sabre@nondot.org>2008-03-16 20:53:07 +0000
commit36ac1cae1f3bf74f474b960c9c80d75f580154b3 (patch)
treeca15aba1d13d4e837c69bbdc00acf92f02f1446b /clang/lib/AST/DeclObjC.cpp
parentd77aff8232b7eca4b1132d193958649e2f74aabf (diff)
downloadbcm5719-llvm-36ac1cae1f3bf74f474b960c9c80d75f580154b3.tar.gz
bcm5719-llvm-36ac1cae1f3bf74f474b960c9c80d75f580154b3.zip
add two more Create methods.
llvm-svn: 48428
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index cd4c6fff9fa..4f1671ef073 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -73,6 +73,21 @@ ObjCCategoryDecl *ObjCCategoryDecl::Create(ASTContext &C, SourceLocation L,
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
OpenPOWER on IntegriCloud