File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1467,6 +1467,20 @@ const TypeInfo &TypeConverter::getSwiftContextPtrTypeInfo() {
1467
1467
return *SwiftContextPtrTI;
1468
1468
}
1469
1469
1470
+ const TypeInfo &IRGenModule::getTaskContinuationFunctionPtrTypeInfo () {
1471
+ return Types.getTaskContinuationFunctionPtrTypeInfo ();
1472
+ }
1473
+
1474
+ const TypeInfo &TypeConverter::getTaskContinuationFunctionPtrTypeInfo () {
1475
+ if (TaskContinuationFunctionPtrTI) return *TaskContinuationFunctionPtrTI;
1476
+ TaskContinuationFunctionPtrTI = createUnmanagedStorageType (
1477
+ IGM.TaskContinuationFunctionPtrTy , ReferenceCounting::Unknown,
1478
+ /* isOptional*/ false );
1479
+ TaskContinuationFunctionPtrTI->NextConverted = FirstType;
1480
+ FirstType = TaskContinuationFunctionPtrTI;
1481
+ return *TaskContinuationFunctionPtrTI;
1482
+ }
1483
+
1470
1484
const LoadableTypeInfo &
1471
1485
IRGenModule::getReferenceObjectTypeInfo (ReferenceCounting refcounting) {
1472
1486
switch (refcounting) {
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ class TypeConverter {
106
106
const LoadableTypeInfo *WitnessTablePtrTI = nullptr ;
107
107
const TypeInfo *TypeMetadataPtrTI = nullptr ;
108
108
const TypeInfo *SwiftContextPtrTI = nullptr ;
109
+ const TypeInfo *TaskContinuationFunctionPtrTI = nullptr ;
109
110
const TypeInfo *ObjCClassPtrTI = nullptr ;
110
111
const LoadableTypeInfo *EmptyTI = nullptr ;
111
112
const LoadableTypeInfo *IntegerLiteralTI = nullptr ;
@@ -183,6 +184,7 @@ class TypeConverter {
183
184
const LoadableTypeInfo &getRawPointerTypeInfo ();
184
185
const TypeInfo &getTypeMetadataPtrTypeInfo ();
185
186
const TypeInfo &getSwiftContextPtrTypeInfo ();
187
+ const TypeInfo &getTaskContinuationFunctionPtrTypeInfo ();
186
188
const TypeInfo &getObjCClassPtrTypeInfo ();
187
189
const LoadableTypeInfo &getWitnessTablePtrTypeInfo ();
188
190
const LoadableTypeInfo &getEmptyTypeInfo ();
Original file line number Diff line number Diff line change @@ -894,6 +894,7 @@ class IRGenModule {
894
894
const TypeInfo &getWitnessTablePtrTypeInfo ();
895
895
const TypeInfo &getTypeMetadataPtrTypeInfo ();
896
896
const TypeInfo &getSwiftContextPtrTypeInfo ();
897
+ const TypeInfo &getTaskContinuationFunctionPtrTypeInfo ();
897
898
const TypeInfo &getObjCClassPtrTypeInfo ();
898
899
const LoadableTypeInfo &getOpaqueStorageTypeInfo (Size size, Alignment align);
899
900
const LoadableTypeInfo &
You can’t perform that action at this time.
0 commit comments