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 @@ -1453,6 +1453,20 @@ const TypeInfo &TypeConverter::getTypeMetadataPtrTypeInfo() {
1453
1453
return *TypeMetadataPtrTI;
1454
1454
}
1455
1455
1456
+ const TypeInfo &IRGenModule::getSwiftContextPtrTypeInfo () {
1457
+ return Types.getSwiftContextPtrTypeInfo ();
1458
+ }
1459
+
1460
+ const TypeInfo &TypeConverter::getSwiftContextPtrTypeInfo () {
1461
+ if (SwiftContextPtrTI) return *SwiftContextPtrTI;
1462
+ SwiftContextPtrTI = createUnmanagedStorageType (IGM.SwiftContextPtrTy ,
1463
+ ReferenceCounting::Unknown,
1464
+ /* isOptional*/ false );
1465
+ SwiftContextPtrTI->NextConverted = FirstType;
1466
+ FirstType = SwiftContextPtrTI;
1467
+ return *SwiftContextPtrTI;
1468
+ }
1469
+
1456
1470
const LoadableTypeInfo &
1457
1471
IRGenModule::getReferenceObjectTypeInfo (ReferenceCounting refcounting) {
1458
1472
switch (refcounting) {
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ class TypeConverter {
105
105
const LoadableTypeInfo *RawPointerTI = nullptr ;
106
106
const LoadableTypeInfo *WitnessTablePtrTI = nullptr ;
107
107
const TypeInfo *TypeMetadataPtrTI = nullptr ;
108
+ const TypeInfo *SwiftContextPtrTI = nullptr ;
108
109
const TypeInfo *ObjCClassPtrTI = nullptr ;
109
110
const LoadableTypeInfo *EmptyTI = nullptr ;
110
111
const LoadableTypeInfo *IntegerLiteralTI = nullptr ;
@@ -181,6 +182,7 @@ class TypeConverter {
181
182
const LoadableTypeInfo &getBridgeObjectTypeInfo ();
182
183
const LoadableTypeInfo &getRawPointerTypeInfo ();
183
184
const TypeInfo &getTypeMetadataPtrTypeInfo ();
185
+ const TypeInfo &getSwiftContextPtrTypeInfo ();
184
186
const TypeInfo &getObjCClassPtrTypeInfo ();
185
187
const LoadableTypeInfo &getWitnessTablePtrTypeInfo ();
186
188
const LoadableTypeInfo &getEmptyTypeInfo ();
Original file line number Diff line number Diff line change @@ -891,6 +891,7 @@ class IRGenModule {
891
891
const TypeInfo &getTypeInfo (SILType T);
892
892
const TypeInfo &getWitnessTablePtrTypeInfo ();
893
893
const TypeInfo &getTypeMetadataPtrTypeInfo ();
894
+ const TypeInfo &getSwiftContextPtrTypeInfo ();
894
895
const TypeInfo &getObjCClassPtrTypeInfo ();
895
896
const LoadableTypeInfo &getOpaqueStorageTypeInfo (Size size, Alignment align);
896
897
const LoadableTypeInfo &
You can’t perform that action at this time.
0 commit comments