[cfe-commits] r139408 - /cfe/trunk/lib/Serialization/ASTReader.cpp
Douglas Gregor
dgregor at apple.com
Fri Sep 9 14:05:56 PDT 2011
Author: dgregor
Date: Fri Sep 9 16:05:56 2011
New Revision: 139408
URL: http://llvm.org/viewvc/llvm-project?rev=139408&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=139408&r1=139407&r2=139408&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Fri Sep 9 16:05:56 2011
@@ -4841,16 +4841,8 @@
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
More information about the cfe-commits
mailing list