diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-17 19:48:06 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-17 19:48:06 +0000 |
commit | 1f4bee56018829eda2bad122848236184483678b (patch) | |
tree | f9ac22ed67a7d730eef16968fcd478686f229741 /clang/lib/AST/DeclObjC.cpp | |
parent | 28e4f67f26219e1c212916f4d58583dc95c3ba44 (diff) | |
download | bcm5719-llvm-1f4bee56018829eda2bad122848236184483678b.tar.gz bcm5719-llvm-1f4bee56018829eda2bad122848236184483678b.zip |
Keep track when a ObjC interface/protocol was initially created as a forward reference.
llvm-svn: 142230
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index a589b7f9d3e..5af3cf59906 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -623,8 +623,9 @@ ObjCInterfaceDecl(DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, SourceLocation CLoc, bool FD, bool isInternal) : ObjCContainerDecl(ObjCInterface, DC, Id, CLoc, atLoc), TypeForDecl(0), SuperClass(0), - CategoryList(0), IvarList(0), - ForwardDecl(FD), InternalInterface(isInternal), ExternallyCompleted(false) { + CategoryList(0), IvarList(0), + InitiallyForwardDecl(FD), ForwardDecl(FD), + InternalInterface(isInternal), ExternallyCompleted(false) { } void ObjCInterfaceDecl::LoadExternalDefinition() const { @@ -866,8 +867,9 @@ ObjCAtDefsFieldDecl ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, - SourceLocation atStartLoc) { - return new (C) ObjCProtocolDecl(DC, Id, nameLoc, atStartLoc); + SourceLocation atStartLoc, + bool isForwardDecl) { + return new (C) ObjCProtocolDecl(DC, Id, nameLoc, atStartLoc, isForwardDecl); } ObjCProtocolDecl *ObjCProtocolDecl::lookupProtocolNamed(IdentifierInfo *Name) { |