From 96c501ef7e314fb0d856b409fb6215581b34415e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Mar 2008 01:15:50 +0000 Subject: Add create methods for ObjCIvarDecl and ObjCInterfaceDecl llvm-svn: 48408 --- clang/lib/Sema/Sema.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/Sema.cpp') diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index f4c271cdcb1..da78ec06787 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -108,8 +108,9 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) Context.setObjCClassType(ClassTypedef); // Synthesize "@class Protocol; - ObjCInterfaceDecl *ProtocolDecl = new ObjCInterfaceDecl(SourceLocation(), 0, - &Context.Idents.get("Protocol"), true); + ObjCInterfaceDecl *ProtocolDecl = + ObjCInterfaceDecl::Create(Context, SourceLocation(), 0, + &Context.Idents.get("Protocol"), true); Context.setObjCProtoType(Context.getObjCInterfaceType(ProtocolDecl)); // Synthesize "typedef struct objc_object { Class isa; } *id;" -- cgit v1.2.3