@@ -122,66 +122,66 @@ public func createTestSmallStruct(_ x: UInt32) -> TestSmallStruct {
122
122
// CHECK: template<class T_0_0>
123
123
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0>
124
124
// CHECK-NEXT: inline void genericPrintFunction(const T_0_0& x) noexcept {
125
- // CHECK-NEXT: return _impl::$s9Functions20genericPrintFunctionyyxlF(swift::_impl::getOpaquePointer(x), swift::getTypeMetadata <T_0_0>());
125
+ // CHECK-NEXT: return _impl::$s9Functions20genericPrintFunctionyyxlF(swift::_impl::getOpaquePointer(x), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
126
126
// CHECK-NEXT: }
127
127
128
128
129
129
// CHECK: template<class T_0_0, class T_0_1>
130
130
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0> && swift::isUsableInGenericContext<T_0_1>
131
131
// CHECK-NEXT: inline void genericPrintFunctionMultiGeneric(swift::Int x, const T_0_0& t1, const T_0_0& t1p, swift::Int y, const T_0_1& t2) noexcept {
132
- // CHECK-NEXT: return _impl::$s9Functions32genericPrintFunctionMultiGenericyySi_xxSiq_tr0_lF(x, swift::_impl::getOpaquePointer(t1), swift::_impl::getOpaquePointer(t1p), y, swift::_impl::getOpaquePointer(t2), swift::getTypeMetadata <T_0_0>(), swift::getTypeMetadata <T_0_1>());
132
+ // CHECK-NEXT: return _impl::$s9Functions32genericPrintFunctionMultiGenericyySi_xxSiq_tr0_lF(x, swift::_impl::getOpaquePointer(t1), swift::_impl::getOpaquePointer(t1p), y, swift::_impl::getOpaquePointer(t2), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata (), swift::TypeMetadataTrait <T_0_1>::getTypeMetadata ());
133
133
// CHECK-NEXT: }
134
134
135
135
136
136
// CHECK: template<class T_0_0>
137
137
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0>
138
138
// CHECK-NEXT: inline void genericPrintFunctionTwoArg(const T_0_0& x, swift::Int y) noexcept {
139
- // CHECK-NEXT: return _impl::$s9Functions26genericPrintFunctionTwoArgyyx_SitlF(swift::_impl::getOpaquePointer(x), y, swift::getTypeMetadata <T_0_0>());
139
+ // CHECK-NEXT: return _impl::$s9Functions26genericPrintFunctionTwoArgyyx_SitlF(swift::_impl::getOpaquePointer(x), y, swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
140
140
// CHECK-NEXT: }
141
141
142
142
// CHECK: template<class T_0_0>
143
143
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0>
144
144
// CHECK-NEXT: inline T_0_0 genericRet(const T_0_0& x) noexcept SWIFT_WARN_UNUSED_RESULT {
145
145
// CHECK-NEXT: if constexpr (std::is_base_of<::swift::_impl::RefCountedClass, T_0_0>::value) {
146
146
// CHECK-NEXT: void *returnValue;
147
- // CHECK-NEXT: _impl::$s9Functions10genericRetyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), swift::getTypeMetadata <T_0_0>());
147
+ // CHECK-NEXT: _impl::$s9Functions10genericRetyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
148
148
// CHECK-NEXT: return ::swift::_impl::implClassFor<T_0_0>::type::makeRetained(returnValue);
149
149
// CHECK-NEXT: } else if constexpr (::swift::_impl::isValueType<T_0_0>) {
150
150
// CHECK-NEXT: return ::swift::_impl::implClassFor<T_0_0>::type::returnNewValue([&](void * _Nonnull returnValue) {
151
- // CHECK-NEXT: _impl::$s9Functions10genericRetyxxlF(returnValue, swift::_impl::getOpaquePointer(x), swift::getTypeMetadata <T_0_0>());
151
+ // CHECK-NEXT: _impl::$s9Functions10genericRetyxxlF(returnValue, swift::_impl::getOpaquePointer(x), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
152
152
// CHECK-NEXT: });
153
153
// CHECK-NEXT: } else {
154
154
// CHECK-NEXT: T_0_0 returnValue;
155
- // CHECK-NEXT: _impl::$s9Functions10genericRetyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), swift::getTypeMetadata <T_0_0>());
155
+ // CHECK-NEXT: _impl::$s9Functions10genericRetyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
156
156
// CHECK-NEXT: return returnValue;
157
157
// CHECK-NEXT: }
158
158
// CHECK-NEXT: }
159
159
160
160
// CHECK: template<class T_0_0>
161
161
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0>
162
162
// CHECK-NEXT: inline void genericSwap(T_0_0& x, T_0_0& y) noexcept {
163
- // CHECK-NEXT: return _impl::$s9Functions11genericSwapyyxz_xztlF(swift::_impl::getOpaquePointer(x), swift::_impl::getOpaquePointer(y), swift::getTypeMetadata <T_0_0>());
163
+ // CHECK-NEXT: return _impl::$s9Functions11genericSwapyyxz_xztlF(swift::_impl::getOpaquePointer(x), swift::_impl::getOpaquePointer(y), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
164
164
// CHECK-NEXT: }
165
165
166
166
// CHECK: template<class T_0_0>
167
167
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0>
168
168
// CHECK-NEXT: inline T_0_0 TestSmallStruct::genericMethodPassThrough(const T_0_0& x) const {
169
169
// CHECK-NEXT: if constexpr (std::is_base_of<::swift::_impl::RefCountedClass, T_0_0>::value) {
170
170
// CHECK-NEXT: void *returnValue;
171
- // CHECK-NEXT: _impl::$s9Functions15TestSmallStructV24genericMethodPassThroughyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), _impl::swift_interop_passDirect_Functions_TestSmallStruct(_getOpaquePointer()), swift::getTypeMetadata <T_0_0>());
171
+ // CHECK-NEXT: _impl::$s9Functions15TestSmallStructV24genericMethodPassThroughyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), _impl::swift_interop_passDirect_Functions_TestSmallStruct(_getOpaquePointer()), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
172
172
// CHECK-NEXT: return ::swift::_impl::implClassFor<T_0_0>::type::makeRetained(returnValue);
173
173
// CHECK-NEXT: } else if constexpr (::swift::_impl::isValueType<T_0_0>) {
174
174
// CHECK-NEXT: return ::swift::_impl::implClassFor<T_0_0>::type::returnNewValue([&](void * _Nonnull returnValue) {
175
- // CHECK-NEXT: _impl::$s9Functions15TestSmallStructV24genericMethodPassThroughyxxlF(returnValue, swift::_impl::getOpaquePointer(x), _impl::swift_interop_passDirect_Functions_TestSmallStruct(_getOpaquePointer()), swift::getTypeMetadata <T_0_0>());
175
+ // CHECK-NEXT: _impl::$s9Functions15TestSmallStructV24genericMethodPassThroughyxxlF(returnValue, swift::_impl::getOpaquePointer(x), _impl::swift_interop_passDirect_Functions_TestSmallStruct(_getOpaquePointer()), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
176
176
// CHECK-NEXT: });
177
177
// CHECK-NEXT: } else {
178
178
// CHECK-NEXT: T_0_0 returnValue;
179
- // CHECK-NEXT: _impl::$s9Functions15TestSmallStructV24genericMethodPassThroughyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), _impl::swift_interop_passDirect_Functions_TestSmallStruct(_getOpaquePointer()), swift::getTypeMetadata <T_0_0>());
179
+ // CHECK-NEXT: _impl::$s9Functions15TestSmallStructV24genericMethodPassThroughyxxlF(reinterpret_cast<void *>(&returnValue), swift::_impl::getOpaquePointer(x), _impl::swift_interop_passDirect_Functions_TestSmallStruct(_getOpaquePointer()), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata ());
180
180
// CHECK-NEXT: return returnValue;
181
181
// CHECK-NEXT: }
182
182
// CHECK-NEXT: }
183
183
// CHECK-NEXT: template<class T_0_0>
184
184
// CHECK-NEXT: requires swift::isUsableInGenericContext<T_0_0>
185
185
// CHECK-NEXT: inline void TestSmallStruct::genericMethodMutTake(const T_0_0& x) {
186
- // CHECK-NEXT: return _impl::$s9Functions15TestSmallStructV20genericMethodMutTakeyyxlF(swift::_impl::getOpaquePointer(x), swift::getTypeMetadata <T_0_0>(), _getOpaquePointer());
186
+ // CHECK-NEXT: return _impl::$s9Functions15TestSmallStructV20genericMethodMutTakeyyxlF(swift::_impl::getOpaquePointer(x), swift::TypeMetadataTrait <T_0_0>::getTypeMetadata (), _getOpaquePointer());
187
187
// CHECK-NEXT: }
0 commit comments