[Serialization] Add control over adding a loaded module to the in-memory cache

This commit is contained in:
Alexis Laferrière
2022-10-26 16:05:09 -07:00
parent 3b63f4986a
commit 730497e9a3
8 changed files with 30 additions and 12 deletions

View File

@@ -94,7 +94,8 @@ bool SourceLoader::canImportModule(ImportPath::Module path,
}
ModuleDecl *SourceLoader::loadModule(SourceLoc importLoc,
ImportPath::Module path) {
ImportPath::Module path,
bool AllowMemoryCache) {
// FIXME: Swift submodules?
if (path.size() > 1)
return nullptr;