mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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>
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user