[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

@@ -839,8 +839,7 @@ bool CompilerInstance::loadPartialModulesAndImplicitImports() {
assert(PM.ModuleBuffer);
if (!SML->loadAST(*MainModule, SourceLoc(), /*moduleInterfacePath*/"",
std::move(PM.ModuleBuffer), std::move(PM.ModuleDocBuffer),
std::move(PM.ModuleSourceInfoBuffer), /*isFramework*/false,
/*treatAsPartialModule*/true))
std::move(PM.ModuleSourceInfoBuffer), /*isFramework*/false))
hadLoadError = true;
}
return hadLoadError;