Back out r139358 "[PCH] When loading the decls linked to an

identifier, also make them visible in the translation unit," which
isn't needed now that John's eliminated the AST dependency in blocks
CodeGen.

llvm-svn: 139408
This commit is contained in:
Douglas Gregor 2011-09-09 21:05:56 +00:00
parent b7910b79f5
commit faf2adb6e4
1 changed files with 0 additions and 8 deletions

View File

@ -4841,16 +4841,8 @@ ASTReader::SetGloballyVisibleDecls(IdentifierInfo *II,
return;
}
ASTContext &Ctx = *getContext();
for (unsigned I = 0, N = DeclIDs.size(); I != N; ++I) {
NamedDecl *D = cast<NamedDecl>(GetDecl(DeclIDs[I]));
// In C++, translation unit's visible decls map gets emitted in the AST
// file, but not on C; make the decl visible so it can be looked up.
if (!Ctx.getLangOptions().CPlusPlus)
SetExternalVisibleDeclsForName(Ctx.getTranslationUnitDecl(),
DeclarationName(II), D);
if (SemaObj) {
if (SemaObj->TUScope) {
// Introduce this declaration into the translation-unit scope