summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-09 21:05:56 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-09 21:05:56 +0000
commitfaf2adb6e4dad1fd219ec244a59487daeb5269fc (patch)
treea75adf9eb41df395cf31891a9e3afdb8fd187766 /clang/lib
parentb7910b79f59e790aaa2e1806ef82f561bf0a19a3 (diff)
downloadbcm5719-llvm-faf2adb6e4dad1fd219ec244a59487daeb5269fc.tar.gz
bcm5719-llvm-faf2adb6e4dad1fd219ec244a59487daeb5269fc.zip
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
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 1f02d3cf246..e574e25f5b9 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud