[Serialization] Remove extInfo param from ModuleFileSharedCore::load()

Populated 'ExtendedValidationInfo' is not used at all.
This commit is contained in:
Rintaro Ishizaki
2020-09-03 14:51:28 -07:00
parent b7c19656ab
commit 6a0a448b01
5 changed files with 12 additions and 21 deletions

View File

@@ -349,15 +349,13 @@ ModuleFile::getModuleName(ASTContext &Ctx, StringRef modulePath,
llvm::MemoryBuffer::getMemBuffer(llvm::MemoryBufferRef(*moduleBuf.get()),
/*RequiresNullTerminator=*/false);
std::shared_ptr<const ModuleFileSharedCore> loadedModuleFile;
ExtendedValidationInfo ExtInfo;
bool isFramework = false;
serialization::ValidationInfo loadInfo =
ModuleFileSharedCore::load(modulePath.str(),
std::move(newBuf),
nullptr,
nullptr,
/*isFramework*/isFramework, loadedModuleFile,
ExtInfo);
/*isFramework*/isFramework, loadedModuleFile);
Name = loadedModuleFile->Name.str();
return std::move(moduleBuf.get());
}