mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: Remove support for serializing GenericParamList from SIL
Now that SILFunctions store a GenericEnvironment instead of a GenericParamList, we can remove some unused flexibility.
This commit is contained in:
@@ -426,8 +426,14 @@ private:
|
||||
ParameterList *readParameterList();
|
||||
|
||||
GenericParamList *maybeGetOrReadGenericParams(serialization::DeclID contextID,
|
||||
DeclContext *DC,
|
||||
llvm::BitstreamCursor &Cursor);
|
||||
DeclContext *DC);
|
||||
|
||||
/// Reads a generic param list from \c DeclTypeCursor.
|
||||
///
|
||||
/// If the record at the cursor is not a generic param list, returns null
|
||||
/// without moving the cursor.
|
||||
GenericParamList *maybeReadGenericParams(DeclContext *DC,
|
||||
GenericParamList *outerParams = nullptr);
|
||||
|
||||
/// Reads a set of requirements from \c DeclTypeCursor.
|
||||
void readGenericRequirements(SmallVectorImpl<Requirement> &requirements);
|
||||
@@ -709,14 +715,6 @@ public:
|
||||
NormalProtocolConformance *
|
||||
readNormalConformance(serialization::NormalConformanceID id);
|
||||
|
||||
/// Reads a generic param list from \c DeclTypeCursor.
|
||||
///
|
||||
/// If the record at the cursor is not a generic param list, returns null
|
||||
/// without moving the cursor.
|
||||
GenericParamList *maybeReadGenericParams(DeclContext *DC,
|
||||
llvm::BitstreamCursor &Cursor,
|
||||
GenericParamList *outerParams = nullptr);
|
||||
|
||||
/// Reads a foreign error conformance from \c DeclTypeCursor, if present.
|
||||
Optional<ForeignErrorConvention> maybeReadForeignErrorConvention();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user