summaryrefslogtreecommitdiffstats
path: root/clang/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
commit219b3e9c6cc7965b375bf8d11bd30f78d5bae7fa (patch)
tree526066479b14fcd4a596462724cfe0a232cf841f /clang/lib/AST/DeclObjC.cpp
parent39afeaf8347589a862a4c4f21d5e47d88d7e7a46 (diff)
downloadbcm5719-llvm-219b3e9c6cc7965b375bf8d11bd30f78d5bae7fa.tar.gz
bcm5719-llvm-219b3e9c6cc7965b375bf8d11bd30f78d5bae7fa.zip
add the last two Create methods for decls, woo!
llvm-svn: 48432
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index 4f1671ef073..dcb53e8c426 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/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
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud