[serialization] Add BCGenericRecordLayout, for shared layouts.

Micro-optimization in module file size and loading complexity.
No functionality change.

Swift SVN r5240
This commit is contained in:
Jordan Rose
2013-05-20 22:50:42 +00:00
parent 6a0609d169
commit 8707fa7000
3 changed files with 62 additions and 39 deletions

View File

@@ -160,15 +160,8 @@ namespace index_block {
DECL_OFFSETS
};
// FIXME: Merge these.
using TypeOffsetsLayout = BCRecordLayout<
TYPE_OFFSETS,
DeclIDField, // first ID in this module
BCArray<BitOffsetField>
>;
using DeclOffsetsLayout = BCRecordLayout<
DECL_OFFSETS,
using OffsetsLayout = BCGenericRecordLayout<
BCFixed<2>, // record ID
DeclIDField, // first ID in this module
BCArray<BitOffsetField>
>;