[AST] Stash an archetype builder in an "incomplete" generic environment.

This eliminates the really gross registration of archetype builders
within the ASTContext, and is another little step toward lazily
constructing archetypes.
This commit is contained in:
Doug Gregor
2016-11-30 21:42:10 -08:00
parent 698d25cb3d
commit 6f64658346
9 changed files with 76 additions and 97 deletions

View File

@@ -952,8 +952,7 @@ GenericEnvironment *ModuleFile::readGenericEnvironment(
assert(!interfaceToArchetypeMap.empty() &&
"no archetypes in generic function?");
return GenericEnvironment::get(getContext(), signature,
interfaceToArchetypeMap);
return GenericEnvironment::get(signature, interfaceToArchetypeMap);
}
GenericEnvironment *ModuleFile::maybeReadGenericEnvironment() {