[ParameterTypeFlags] Incorporate review feedback

This commit is contained in:
Michael Ilseman
2016-09-22 10:08:26 -07:00
parent 8923a12585
commit 0bb868a539
10 changed files with 65 additions and 53 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 = 268; // Last change: parameter type flags
const uint16_t VERSION_MINOR = 269; // Last change: parameter type flags
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -571,8 +571,10 @@ namespace decls_block {
using ParenTypeLayout = BCRecordLayout<
PAREN_TYPE,
TypeIDField, // inner type
BCFixed<ParameterTypeFlags::NumBits> // vararg?, autoclosure?, escaping?
TypeIDField, // inner type
BCFixed<1>, // vararg?
BCFixed<1>, // autoclosure?
BCFixed<1> // escaping?
>;
using TupleTypeLayout = BCRecordLayout<
@@ -581,9 +583,11 @@ namespace decls_block {
using TupleTypeEltLayout = BCRecordLayout<
TUPLE_TYPE_ELT,
IdentifierIDField, // name
TypeIDField, // type
BCFixed<ParameterTypeFlags::NumBits> // vararg?, autoclosure?, escaping?
IdentifierIDField, // name
TypeIDField, // type
BCFixed<1>, // vararg?
BCFixed<1>, // autoclosure?
BCFixed<1> // escaping?
>;
using FunctionTypeLayout = BCRecordLayout<