aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-08-09 08:58:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-08-09 08:58:36 +0000
commit86cc82906fc57c2b7b05b9fec9f119c0c164d9ee (patch)
treec0e7636043a855544c0b0ee6089e467a7e829a12 /clang/lib/Serialization/ModuleManager.cpp
parent0f99d6a4413e3da6ec242c0ab715d6699045dea8 (diff)
downloadllvm-86cc82906fc57c2b7b05b9fec9f119c0c164d9ee.zip
llvm-86cc82906fc57c2b7b05b9fec9f119c0c164d9ee.tar.gz
llvm-86cc82906fc57c2b7b05b9fec9f119c0c164d9ee.tar.bz2
[modules] Remove now-dead code for lazy loading of files specified by -fmodule-file=.
llvm-svn: 244417
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
-rw-r--r--clang/lib/Serialization/ModuleManager.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp
index 895743f..f9d0fa46 100644
--- a/clang/lib/Serialization/ModuleManager.cpp
+++ b/clang/lib/Serialization/ModuleManager.cpp
@@ -249,15 +249,6 @@ ModuleManager::addInMemoryBuffer(StringRef FileName,
InMemoryBuffers[Entry] = std::move(Buffer);
}
-bool ModuleManager::addKnownModuleFile(StringRef FileName) {
- const FileEntry *File;
- if (lookupModuleFile(FileName, 0, 0, File))
- return true;
- if (!Modules.count(File))
- AdditionalKnownModuleFiles.insert(File);
- return false;
-}
-
ModuleManager::VisitState *ModuleManager::allocateVisitState() {
// Fast path: if we have a cached state, use it.
if (FirstVisitState) {
@@ -294,8 +285,6 @@ void ModuleManager::setGlobalIndex(GlobalModuleIndex *Index) {
}
void ModuleManager::moduleFileAccepted(ModuleFile *MF) {
- AdditionalKnownModuleFiles.remove(MF->File);
-
if (!GlobalIndex || GlobalIndex->loadedModuleFile(MF))
return;