diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-06 04:47:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-06 04:47:34 +0000 |
commit | 0a5ff0d34aca98c70cd72c777c95622acedc6f50 (patch) | |
tree | 09a16abfc11ef817e14f13da94c8f0db17e9b992 /clang/lib/AST/DeclObjC.cpp | |
parent | e8e1e1131dba5edc8b91e769736feec2632fc2d7 (diff) | |
download | bcm5719-llvm-0a5ff0d34aca98c70cd72c777c95622acedc6f50.tar.gz bcm5719-llvm-0a5ff0d34aca98c70cd72c777c95622acedc6f50.zip |
This patch contains these changes:
-Renamed ContextDecl -> DeclContext
-Removed DeclContext pointer from FieldDecl
-EnumDecl inherits from DeclContext, instead of TagDecl
Patch by Argiris Kirtzidis!
llvm-svn: 49261
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 5671dbe9b94..a8ef5aa473b 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -45,11 +45,10 @@ ObjCInterfaceDecl *ObjCInterfaceDecl::Create(ASTContext &C, isInternal); } -ObjCIvarDecl *ObjCIvarDecl::Create(ASTContext &C, ObjCInterfaceDecl *CD, - SourceLocation L, +ObjCIvarDecl *ObjCIvarDecl::Create(ASTContext &C, SourceLocation L, IdentifierInfo *Id, QualType T) { void *Mem = C.getAllocator().Allocate<ObjCIvarDecl>(); - return new (Mem) ObjCIvarDecl(CD, L, Id, T); + return new (Mem) ObjCIvarDecl(L, Id, T); } ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, |