diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-16 21:17:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-16 21:17:37 +0000 |
commit | 219b3e9c6cc7965b375bf8d11bd30f78d5bae7fa (patch) | |
tree | 526066479b14fcd4a596462724cfe0a232cf841f /clang/lib/AST/DeclObjC.cpp | |
parent | 39afeaf8347589a862a4c4f21d5e47d88d7e7a46 (diff) | |
download | bcm5719-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.cpp | 13 |
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 //===----------------------------------------------------------------------===// |