diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-09 21:05:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-09 21:05:56 +0000 |
commit | 5181ad023c32f4f13a842e41ed7f8e3c2e23a38e (patch) | |
tree | 8e30ecb9ac3a596981da3599275f9073ff04dfac /lib/Serialization/ASTReader.cpp | |
parent | d023aec8907831a18d3514a95b843a7ee06b6b5e (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReader.cpp')
-rw-r--r-- | lib/Serialization/ASTReader.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 1f02d3cf24..e574e25f5b 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -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 |