aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-16 21:17:37 +0000
committerChris Lattner <sabre@nondot.org>2008-03-16 21:17:37 +0000
commitf8d17a59167d9c2026506ed8813ea434d93b662a (patch)
treeafd42d377328872baba5a859636a2fd981e58419 /lib/AST/DeclObjC.cpp
parentf3a7af901231535191d14cb524d58f22907ac4d2 (diff)
add the last two Create methods for decls, woo!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r--lib/AST/DeclObjC.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index 4f1671ef07..dcb53e8c42 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -89,6 +89,19 @@ ObjCImplementationDecl::Create(ASTContext &C, SourceLocation L,
return new (Mem) ObjCImplementationDecl(L, Id, ClassInterface, SuperDecl);
}
+ObjCCompatibleAliasDecl *
+ObjCCompatibleAliasDecl::Create(ASTContext &C, SourceLocation L,
+ IdentifierInfo *Id,
+ ObjCInterfaceDecl* AliasedClass) {
+ void *Mem = C.getAllocator().Allocate<ObjCCompatibleAliasDecl>();
+ return new (Mem) ObjCCompatibleAliasDecl(L, Id, AliasedClass);
+}
+
+ObjCPropertyDecl *ObjCPropertyDecl::Create(ASTContext &C, SourceLocation L) {
+ void *Mem = C.getAllocator().Allocate<ObjCPropertyDecl>();
+ return new (Mem) ObjCPropertyDecl(L);
+}
+
//===----------------------------------------------------------------------===//
// Objective-C Decl Implementation
//===----------------------------------------------------------------------===//