mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Stop pre-loading generic environments.
Make generic environment deserialization lazy, which eliminates a significant amount of up-front work. Most clients only need the generic signature, not the full generic environment.
This commit is contained in:
@@ -1297,11 +1297,7 @@ Status ModuleFile::associateWithFileContext(FileUnit *file,
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
ModuleFile::~ModuleFile() {
|
||||
assert(DelayedGenericEnvironments.empty() &&
|
||||
"either finishPendingActions() was never called, or someone forgot "
|
||||
"to use getModuleFileForDelayedActions()");
|
||||
}
|
||||
ModuleFile::~ModuleFile() { }
|
||||
|
||||
void ModuleFile::lookupValue(DeclName name,
|
||||
SmallVectorImpl<ValueDecl*> &results) {
|
||||
|
||||
Reference in New Issue
Block a user