case DeclarationName::ObjCOneArgSelector:
case DeclarationName::ObjCMultiArgSelector:
return DeclarationName(GetSelector(Record, Idx));
- break;
case DeclarationName::CXXConstructorName:
return Context.DeclarationNames.getCXXConstructorName(
ObjCAliasDecls[AliasName] = AliasDecl;
- // FIXME: PushOnScopeChains?
- CurContext->addDecl(Context, AliasDecl);
+ PushOnScopeChains(AliasDecl, TUScope);
if (!CheckObjCDeclScope(AliasDecl))
TUScope->AddDecl(DeclPtrTy::make(AliasDecl));
IdentList[i], SourceLocation(), true);
ObjCInterfaceDecls[IdentList[i]] = IDecl;
- // FIXME: PushOnScopeChains?
- CurContext->addDecl(Context, IDecl);
+ PushOnScopeChains(IDecl, TUScope);
// Remember that this needs to be removed when the scope is popped.
TUScope->AddDecl(DeclPtrTy::make(IDecl));
}