mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Miscellaneous cleanups for Parameters/Tuple Types
* Move IsInOut bit into the type parameter flags and make sure to serialize it. * Remove some unused constructors and accessors.
This commit is contained in:
@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
|
||||
/// in source control, you should also update the comment to briefly
|
||||
/// describe what change you made. The content of this comment isn't important;
|
||||
/// it just ensures a conflict if two people change the module format.
|
||||
const uint16_t VERSION_MINOR = 346; // Last change: dependency types for enums
|
||||
const uint16_t VERSION_MINOR = 347; // Last change: 'inout' on parameter types
|
||||
|
||||
using DeclID = PointerEmbeddedInt<unsigned, 31>;
|
||||
using DeclIDField = BCFixed<31>;
|
||||
@@ -598,7 +598,8 @@ namespace decls_block {
|
||||
TypeIDField, // inner type
|
||||
BCFixed<1>, // vararg?
|
||||
BCFixed<1>, // autoclosure?
|
||||
BCFixed<1> // escaping?
|
||||
BCFixed<1>, // escaping?
|
||||
BCFixed<1> // inout?
|
||||
>;
|
||||
|
||||
using TupleTypeLayout = BCRecordLayout<
|
||||
@@ -611,7 +612,8 @@ namespace decls_block {
|
||||
TypeIDField, // type
|
||||
BCFixed<1>, // vararg?
|
||||
BCFixed<1>, // autoclosure?
|
||||
BCFixed<1> // escaping?
|
||||
BCFixed<1>, // escaping?
|
||||
BCFixed<1> // inout?
|
||||
>;
|
||||
|
||||
using FunctionTypeLayout = BCRecordLayout<
|
||||
|
||||
Reference in New Issue
Block a user