diff options
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 13 |
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 //===----------------------------------------------------------------------===// |