[modules] Remove now-dead code for lazy loading of files specified by -fmodule-file=.

llvm-svn: 244417
This commit is contained in:
Richard Smith
2015-08-09 08:58:36 +00:00
parent 0f99d6a441
commit 86cc82906f
7 changed files with 3 additions and 85 deletions

View File

@@ -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;