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/Sema/SemaDeclObjC.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/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 51d282a546..e76971188f 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -583,8 +583,7 @@ Sema::ActOnStartProtocolInterface(SourceLocation AtProtoInterfaceLoc, // FIXME: Can we turn this into an error? PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, ProtocolLoc, AtProtoInterfaceLoc, - /*PrevDecl=*/0, - /*isForwardDecl=*/false); + /*PrevDecl=*/0); PDecl->startDefinition(); } else { if (PrevDecl) { @@ -599,8 +598,7 @@ Sema::ActOnStartProtocolInterface(SourceLocation AtProtoInterfaceLoc, // Create the new declaration. PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, ProtocolLoc, AtProtoInterfaceLoc, - /*PrevDecl=*/PrevDecl, - /*isForwardDecl=*/false); + /*PrevDecl=*/PrevDecl); PushOnScopeChains(PDecl, TUScope); PDecl->startDefinition(); @@ -707,7 +705,7 @@ Sema::ActOnForwardProtocolDeclaration(SourceLocation AtProtocolLoc, ObjCProtocolDecl *PDecl = ObjCProtocolDecl::Create(Context, CurContext, Ident, IdentList[i].second, AtProtocolLoc, - PrevDecl, /*isForwardDecl=*/true); + PrevDecl); PushOnScopeChains(PDecl, TUScope); CheckObjCDeclScope(PDecl); |