@@ -157,16 +157,14 @@ class alignas(1 << DeclAlignInBits) GenericEnvironment final
157157 friend ArchetypeType;
158158 friend QueryInterfaceTypeSubstitutions;
159159
160- Type getOrCreateArchetypeFromInterfaceType (Type depType);
161-
162- // / Add a mapping of a generic parameter to a specific type (which may be
163- // / an archetype)
164- void addMapping (GenericParamKey key, Type contextType);
160+ // / Add a mapping of a type parameter to a contextual type, usually
161+ // / an archetype.
162+ void addMapping (CanType depType, Type contextType);
165163
166- // / Retrieve the mapping for the given generic parameter, if present.
164+ // / Retrieve the mapping for the given type parameter, if present.
167165 // /
168166 // / This is only useful when lazily populating a generic environment.
169- std::optional< Type> getMappingIfPresent (GenericParamKey key ) const ;
167+ Type getMappingIfPresent (CanType depType ) const ;
170168
171169public:
172170 GenericSignature getGenericSignature () const {
@@ -283,13 +281,12 @@ class alignas(1 << DeclAlignInBits) GenericEnvironment final
283281 // / Map an interface type to a contextual type.
284282 Type mapTypeIntoContext (Type type) const ;
285283
286- // / Map an interface type to a contextual type.
287- Type mapTypeIntoContext (Type type,
288- LookupConformanceFn lookupConformance) const ;
289-
290284 // / Map a generic parameter type to a contextual type.
291285 Type mapTypeIntoContext (GenericTypeParamType *type) const ;
292286
287+ // / Map a type parameter type to a contextual type.
288+ Type getOrCreateArchetypeFromInterfaceType (Type depType);
289+
293290 // / Map an interface type containing parameter packs to a contextual
294291 // / type in the opened element generic context.
295292 Type mapPackTypeIntoElementContext (Type type) const ;
0 commit comments