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:
Robert Widmann
2017-06-20 13:59:46 -07:00
parent 531c2e8868
commit 777e1f9604
7 changed files with 55 additions and 67 deletions

View File

@@ -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<