ExplicitModuleLoader: allow explicit module input map to indicate whether a module is a system module

This commit is contained in:
Xi Ge
2021-08-03 17:09:04 -07:00
parent 1e6b758330
commit 9cdc39df65
3 changed files with 21 additions and 10 deletions

View File

@@ -1722,6 +1722,7 @@ bool ExplicitSwiftModuleLoader::findModule(ImportPath::Element ModuleID,
// Set IsFramework bit according to the moduleInfo
IsFramework = moduleInfo.isFramework;
IsSystemModule = moduleInfo.isSystem;
auto &fs = *Ctx.SourceMgr.getFileSystem();
// Open .swiftmodule file