[Serialization/AST] Lazy generic enviroments for extensions.

This commit is contained in:
Doug Gregor
2016-12-12 20:46:47 -08:00
parent 369f362eb4
commit d86c4a8f42
4 changed files with 90 additions and 33 deletions

View File

@@ -453,8 +453,9 @@ private:
/// generic environments.
uint64_t allocateLazyGenericEnvironmentMap(TypeSubstitutionMap &&map);
/// Set up a lazy generic environment for the given type.
void readLazyGenericEnvironment(GenericTypeDecl *type);
/// Set up a lazy generic environment for the given type or extension.
void readLazyGenericEnvironment(
llvm::PointerUnion<GenericTypeDecl *, ExtensionDecl *> typeOrExt);
/// Read the generic signature and type substitution map for a
/// generic environment from \c Cursor.