[Serialization] Remove treatAsPartialModule parameter

This information can be derived from whether we're
installing the module file into the main module.
This commit is contained in:
Hamish Knight
2020-05-28 12:09:10 -07:00
parent c98c862e7e
commit f810cfcc45
6 changed files with 20 additions and 27 deletions

View File

@@ -186,8 +186,7 @@ static void indexModule(llvm::MemoryBuffer *Input,
// correct filename here.
auto FUnit = Loader->loadAST(*Mod, None, /*moduleInterfacePath*/"",
std::move(Buf), nullptr, nullptr,
/*isFramework*/false,
/*treatAsPartialModule*/false);
/*isFramework*/false);
// FIXME: Not knowing what went wrong is pretty bad. loadModule() should be
// more modular, rather than emitting diagnostics itself.