serialization: encode allowable client names in binary module format

This commit is contained in:
Xi Ge
2022-11-25 10:47:51 -08:00
parent 1f3e159cfe
commit 67bbab7e02
15 changed files with 61 additions and 2 deletions

View File

@@ -781,6 +781,9 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
if (loadedModuleFile->isConcurrencyChecked())
M.setIsConcurrencyChecked();
M.setUserModuleVersion(loadedModuleFile->getUserModuleVersion());
for (auto name: loadedModuleFile->getAllowableClientNames()) {
M.addAllowableClientName(Ctx.getIdentifier(name));
}
auto diagLocOrInvalid = diagLoc.getValueOr(SourceLoc());
loadInfo.status = loadedModuleFile->associateWithFileContext(
fileUnit, diagLocOrInvalid, Ctx.LangOpts.AllowModuleWithCompilerErrors);