From a2e36d21c0a7900351dd9f5639b96b88c89045c5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 28 Feb 2015 01:01:56 +0000 Subject: Rework our handling of key functions. We used to track a complete list of all dynamic classes in the translation unit and check whether each one's key function is defined when we got to the end of the TU (and when we got to the end of each module). This is really terrible for modules performance, since it causes unnecessary deserialization of every dynamic class in every compilation. We now use a much simpler (and, in a modules build, vastly more efficient) system: when we see an out-of-line definition of a virtual function, we check whether that function was in fact its class's key function. (If so, we need to emit the vtable.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230830 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 449ddf4311..a031577767 100644 --- a/lib/Sema/MultiplexExternalSemaSource.cpp +++ b/lib/Sema/MultiplexExternalSemaSource.cpp @@ -236,12 +236,6 @@ void MultiplexExternalSemaSource::ReadExtVectorDecls( Sources[i]->ReadExtVectorDecls(Decls); } -void MultiplexExternalSemaSource::ReadDynamicClasses( - SmallVectorImpl &Decls) { - for(size_t i = 0; i < Sources.size(); ++i) - Sources[i]->ReadDynamicClasses(Decls); -} - void MultiplexExternalSemaSource::ReadUnusedLocalTypedefNameCandidates( llvm::SmallSetVector &Decls) { for(size_t i = 0; i < Sources.size(); ++i) -- cgit v1.2.1