Give ObjCProtocolDecl a Create method.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48410 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index 53ba8c1..17b1d28 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -47,6 +47,14 @@
   return new (Mem) ObjCIvarDecl(L, Id, T);
 }
 
+ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, SourceLocation L, 
+                                           unsigned numRefProtos,
+                                           IdentifierInfo *Id, 
+                                           bool ForwardDecl) {
+  void *Mem = C.getAllocator().Allocate<ObjCProtocolDecl>();
+  return new (Mem) ObjCProtocolDecl(L, numRefProtos, Id, ForwardDecl);
+}
+
 
 //===----------------------------------------------------------------------===//
 // Objective-C Decl Implementation