Skip to content

Commit 5241b0a

Browse files
committed
Serialization: Remove a bit of dead code from SILFormat.h
1 parent 53bfc76 commit 5241b0a

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

lib/Serialization/SILFormat.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,6 @@ enum SILVTableEntryKindEncoding : uint8_t {
5656
};
5757
using SILVTableEntryKindField = BCFixed<2>;
5858

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-
7559
enum CastConsumptionKindEncoding : uint8_t {
7660
SIL_CAST_CONSUMPTION_TAKE_ALWAYS,
7761
SIL_CAST_CONSUMPTION_TAKE_ON_SUCCESS,
@@ -95,15 +79,6 @@ enum class KeyPathComputedComponentIdKindEncoding : uint8_t {
9579
DeclRef,
9680
};
9781

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-
10782
/// The record types within the "sil-index" block.
10883
///
10984
/// \sa SIL_INDEX_BLOCK_ID

0 commit comments

Comments
 (0)