mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Add control over adding a loaded module to the in-memory cache
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user