mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
serialization: encode allowable client names in binary module format
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user