From 499fc534bd0210b73176bb9bc0ffbe6e59512133 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 7 Mar 2015 00:04:49 +0000 Subject: Replace Sema's map of locally-scoped extern "C" declarations with a DeclContext of extern "C" declarations. This is simpler and vastly more efficient for modules builds (we no longer need to load *all* extern "C" declarations to determine if we have a redeclaration). No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231538 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/MultiplexExternalSemaSource.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/Sema/MultiplexExternalSemaSource.cpp') diff --git a/lib/Sema/MultiplexExternalSemaSource.cpp b/lib/Sema/MultiplexExternalSemaSource.cpp index a031577767..194c3693c1 100644 --- a/lib/Sema/MultiplexExternalSemaSource.cpp +++ b/lib/Sema/MultiplexExternalSemaSource.cpp @@ -242,12 +242,6 @@ void MultiplexExternalSemaSource::ReadUnusedLocalTypedefNameCandidates( Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls); } -void MultiplexExternalSemaSource::ReadLocallyScopedExternCDecls( - SmallVectorImpl &Decls) { - for(size_t i = 0; i < Sources.size(); ++i) - Sources[i]->ReadLocallyScopedExternCDecls(Decls); -} - void MultiplexExternalSemaSource::ReadReferencedSelectors( SmallVectorImpl > &Sels) { for(size_t i = 0; i < Sources.size(); ++i) -- cgit v1.2.1