[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:
Doug Gregor
2017-05-16 11:06:17 -07:00
parent f792aeaf1a
commit f5b99c75f4
3 changed files with 1 additions and 24 deletions

View File

@@ -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) {