diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-16 01:15:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-16 01:15:50 +0000 |
commit | 96c501ef7e314fb0d856b409fb6215581b34415e (patch) | |
tree | b83b266975aa27cc0ca9778b74b2aa357245c2e6 /clang/lib/Sema/Sema.cpp | |
parent | 011b0f5c5ab36db8fe118cf46f19f48d275ff512 (diff) | |
download | bcm5719-llvm-96c501ef7e314fb0d856b409fb6215581b34415e.tar.gz bcm5719-llvm-96c501ef7e314fb0d856b409fb6215581b34415e.zip |
Add create methods for ObjCIvarDecl and ObjCInterfaceDecl
llvm-svn: 48408
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;" |