diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-12-27 22:43:10 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-12-27 22:43:10 +0000 |
| commit | deafd0b2a42b16568f416fbe218db82d56e2d89d (patch) | |
| tree | 95d9f29e2f42e149a9aa1275d62d2b829da42c7f /clang/lib/Sema/SemaDeclObjC.cpp | |
| parent | 45146a12cf0f3c0ebacc83ef936650c69e3303c8 (diff) | |
| download | bcm5719-llvm-deafd0b2a42b16568f416fbe218db82d56e2d89d.tar.gz bcm5719-llvm-deafd0b2a42b16568f416fbe218db82d56e2d89d.zip | |
Eliminate ObjCClassDecl, which is redundant now that ObjCInterfaceDecl
covers both declarations (@class) and definitions (@interface) of an
Objective-C class.
llvm-svn: 147299
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index c86f735d57d..168ccfc3f57 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -1775,21 +1775,12 @@ Sema::ActOnForwardClassDeclaration(SourceLocation AtClassLoc, = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); ObjCInterfaceDecl *IDecl = ObjCInterfaceDecl::Create(Context, CurContext, AtClassLoc, - IdentList[i], PrevIDecl, IdentLocs[i], true); + IdentList[i], PrevIDecl, IdentLocs[i]); IDecl->setAtEndRange(IdentLocs[i]); - // Create the forward declaration. Note that we intentionally do this - // before we add the ObjCInterfaceDecl we just created, so that the - // rewriter sees the ObjCClassDecl first. - // FIXME: ObjCClassDecl should probably just go away. - ObjCClassDecl *CDecl = ObjCClassDecl::Create(Context, CurContext, AtClassLoc, - IDecl, IdentLocs[i]); - CurContext->addDecl(CDecl); - PushOnScopeChains(IDecl, TUScope); - - CheckObjCDeclScope(CDecl); - DeclsInGroup.push_back(CDecl); + CheckObjCDeclScope(IDecl); + DeclsInGroup.push_back(IDecl); } return BuildDeclaratorGroup(DeclsInGroup.data(), DeclsInGroup.size(), false); |

