mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[serialization] Don't special-case builtin types.
Instead, special-case cross-references to use the empty identifier as the name of the Builtin module. This way imported modules will be able to use builtin types and functions without the main TU having access. Swift SVN r5947
This commit is contained in:
@@ -180,8 +180,7 @@ namespace decls_block {
|
||||
// These IDs must \em not be renumbered or reordered without incrementing
|
||||
// VERSION_MAJOR.
|
||||
enum : uint8_t {
|
||||
BUILTIN_TYPE = 1,
|
||||
NAME_ALIAS_TYPE,
|
||||
NAME_ALIAS_TYPE = 1,
|
||||
STRUCT_TYPE,
|
||||
PAREN_TYPE,
|
||||
TUPLE_TYPE,
|
||||
@@ -212,11 +211,6 @@ namespace decls_block {
|
||||
DECL_CONTEXT = 255
|
||||
};
|
||||
|
||||
using BuiltinTypeLayout = BCRecordLayout<
|
||||
BUILTIN_TYPE,
|
||||
BCBlob // name of the builtin type
|
||||
>;
|
||||
|
||||
using NameAliasTypeLayout = BCRecordLayout<
|
||||
NAME_ALIAS_TYPE,
|
||||
DeclIDField // typealias decl
|
||||
|
||||
Reference in New Issue
Block a user