diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-01 22:06:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-01 22:06:18 +0000 |
commit | c9d3c7edb513e9b8a6ab65b04133653e71d7a72b (patch) | |
tree | 84398a71d92c2d367dfdf59ab2dbdbb8b8061e58 /lib/AST/DeclObjC.cpp | |
parent | 163ada8a0f56a9928feaaaf11a4eb7d41f65a0e2 (diff) |
Eliminate the ForwardDecl/InitiallyForwardDecl bits from ObjCProtocolDecl. They are no longer needed
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index aabea0434c..59bfdc6b6e 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -970,12 +970,8 @@ void ObjCProtocolDecl::anchor() { } ObjCProtocolDecl::ObjCProtocolDecl(DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, - ObjCProtocolDecl *PrevDecl, - bool isForwardDecl) - : ObjCContainerDecl(ObjCProtocol, DC, Id, nameLoc, atStartLoc), - Data(0), - InitiallyForwardDecl(isForwardDecl), - isForwardProtoDecl(isForwardDecl) + ObjCProtocolDecl *PrevDecl) + : ObjCContainerDecl(ObjCProtocol, DC, Id, nameLoc, atStartLoc), Data() { setPreviousDeclaration(PrevDecl); if (PrevDecl) @@ -986,11 +982,9 @@ ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, - ObjCProtocolDecl *PrevDecl, - bool isForwardDecl) { + ObjCProtocolDecl *PrevDecl) { ObjCProtocolDecl *Result - = new (C) ObjCProtocolDecl(DC, Id, nameLoc, atStartLoc, PrevDecl, - isForwardDecl); + = new (C) ObjCProtocolDecl(DC, Id, nameLoc, atStartLoc, PrevDecl); return Result; } |