@@ -306,23 +306,6 @@ class TypeLowering {
306
306
return Properties.isResilient ();
307
307
}
308
308
309
- // / Return the semantic type.
310
- // /
311
- // / The semantic type is what a type pretends to be during
312
- // / type-checking: that is, the type that getTypeOfRValue would
313
- // / return on a variable of this type.
314
- SILType getSemanticType () const {
315
- // If you change this, change getSemanticTypeLowering() too.
316
- auto storageType = getLoweredType ().getASTType ();
317
- if (auto refType = dyn_cast<ReferenceStorageType>(storageType))
318
- return SILType::getPrimitiveType (refType.getReferentType (),
319
- SILValueCategory::Object);
320
- return getLoweredType ();
321
- }
322
-
323
- // / Return the lowering for the semantic type.
324
- inline const TypeLowering &getSemanticTypeLowering (TypeConverter &TC) const ;
325
-
326
309
// / Produce an exact copy of the value in the given address as a
327
310
// / scalar. The caller is responsible for destroying this value,
328
311
// / e.g. by releasing it.
@@ -1033,15 +1016,6 @@ class TypeConverter {
1033
1016
bool suppressOptional);
1034
1017
};
1035
1018
1036
- inline const TypeLowering &
1037
- TypeLowering::getSemanticTypeLowering (TypeConverter &TC) const {
1038
- // If you change this, change getSemanticType() too.
1039
- auto storageType = getLoweredType ().getASTType ();
1040
- if (auto refType = dyn_cast<ReferenceStorageType>(storageType))
1041
- return TC.getTypeLowering (refType.getReferentType ());
1042
- return *this ;
1043
- }
1044
-
1045
1019
// / RAII interface to push a generic context.
1046
1020
class GenericContextScope {
1047
1021
TypeConverter &TC;
0 commit comments