diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-10 23:43:47 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-10 23:43:47 +0000 |
commit | 5ea6ef490547917426d5e2ed14c9f36521bbeacf (patch) | |
tree | 7ceed207f83a9a37ee45c0c047fb45730800f564 /lib/Serialization/ASTReader.cpp | |
parent | 6503255e4fa0689f427b3b798180fceac29c98c2 (diff) |
Truth in advertising: LocallyScopedExternalDecls actually only contains
external declarations with C language linkage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReader.cpp')
-rw-r--r-- | lib/Serialization/ASTReader.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index eca9918a79..f32d53fd8a 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -2119,9 +2119,9 @@ bool ASTReader::ReadASTBlock(ModuleFile &F) { } break; - case LOCALLY_SCOPED_EXTERNAL_DECLS: + case LOCALLY_SCOPED_EXTERN_C_DECLS: for (unsigned I = 0, N = Record.size(); I != N; ++I) - LocallyScopedExternalDecls.push_back(getGlobalDeclID(F, Record[I])); + LocallyScopedExternCDecls.push_back(getGlobalDeclID(F, Record[I])); break; case SELECTOR_OFFSETS: { @@ -5961,14 +5961,14 @@ void ASTReader::ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl *> &Decls) { } void -ASTReader::ReadLocallyScopedExternalDecls(SmallVectorImpl<NamedDecl *> &Decls) { - for (unsigned I = 0, N = LocallyScopedExternalDecls.size(); I != N; ++I) { - NamedDecl *D - = dyn_cast_or_null<NamedDecl>(GetDecl(LocallyScopedExternalDecls[I])); +ASTReader::ReadLocallyScopedExternCDecls(SmallVectorImpl<NamedDecl *> &Decls) { + for (unsigned I = 0, N = LocallyScopedExternCDecls.size(); I != N; ++I) { + NamedDecl *D + = dyn_cast_or_null<NamedDecl>(GetDecl(LocallyScopedExternCDecls[I])); if (D) Decls.push_back(D); } - LocallyScopedExternalDecls.clear(); + LocallyScopedExternCDecls.clear(); } void ASTReader::ReadReferencedSelectors( |