@@ -56,22 +56,6 @@ enum SILVTableEntryKindEncoding : uint8_t {
56
56
};
57
57
using SILVTableEntryKindField = BCFixed<2 >;
58
58
59
- enum CheckedCastKindEncoding : uint8_t {
60
- SIL_CHECKED_CAST_ARCHETYPE_TO_ARCHETYPE,
61
- SIL_CHECKED_CAST_ARCHETYPE_TO_CONCRETE,
62
- SIL_CHECKED_CAST_ARRAY_DOWNCAST,
63
- SIL_CHECKED_CAST_ARRAY_DOWNCAST_BRIDGED,
64
- SIL_CHECKED_CAST_DICTIONARY_DOWNCAST,
65
- SIL_CHECKED_CAST_DICTIONARY_DOWNCAST_BRIDGED,
66
- SIL_CHECKED_CAST_DOWNCAST,
67
- SIL_CHECKED_CAST_IDENTICAL,
68
- SIL_CHECKED_CAST_EXISTENTIAL_TO_ARCHETYPE,
69
- SIL_CHECKED_CAST_EXISTENTIAL_TO_CONCRETE,
70
- SIL_CHECKED_CAST_SUPER_TO_ARCHETYPE,
71
- SIL_CHECKED_CAST_CONCRETE_TO_ARCHETYPE,
72
- SIL_CHECKED_CAST_CONCRETE_TO_UNRELATED_EXISTENTIAL,
73
- };
74
-
75
59
enum CastConsumptionKindEncoding : uint8_t {
76
60
SIL_CAST_CONSUMPTION_TAKE_ALWAYS,
77
61
SIL_CAST_CONSUMPTION_TAKE_ON_SUCCESS,
@@ -95,15 +79,6 @@ enum class KeyPathComputedComponentIdKindEncoding : uint8_t {
95
79
DeclRef,
96
80
};
97
81
98
- // Constants for packing an encoded CheckedCastKind and
99
- // CastConsumptionKind together.
100
- enum {
101
- // Must be large enough to store all the CheckedCastKindEncodings
102
- SIL_CAST_CONSUMPTION_BIT_OFFSET = 4 ,
103
- SIL_CHECKED_CAST_MASK =
104
- (1 << SIL_CAST_CONSUMPTION_BIT_OFFSET) - 1
105
- };
106
-
107
82
// / The record types within the "sil-index" block.
108
83
// /
109
84
// / \sa SIL_INDEX_BLOCK_ID
0 commit comments