mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SILSerializer: handle sil_global and sil_global_addr.
Always serialize global variables and deserialize a global variable lazily when deserializing SILGlobalAddr. rdar://15493552 Swift SVN r10884
This commit is contained in:
@@ -331,12 +331,15 @@ void Serializer::writeBlockInfoBlock() {
|
||||
RECORD(sil_block, SIL_INST_NO_OPERAND);
|
||||
RECORD(sil_block, SIL_VTABLE);
|
||||
RECORD(sil_block, SIL_VTABLE_ENTRY);
|
||||
RECORD(sil_block, SIL_GLOBALVAR);
|
||||
|
||||
BLOCK(SIL_INDEX_BLOCK);
|
||||
RECORD(sil_index_block, SIL_FUNC_NAMES);
|
||||
RECORD(sil_index_block, SIL_FUNC_OFFSETS);
|
||||
RECORD(sil_index_block, SIL_VTABLE_NAMES);
|
||||
RECORD(sil_index_block, SIL_VTABLE_OFFSETS);
|
||||
RECORD(sil_index_block, SIL_GLOBALVAR_NAMES);
|
||||
RECORD(sil_index_block, SIL_GLOBALVAR_OFFSETS);
|
||||
|
||||
BLOCK(KNOWN_PROTOCOL_BLOCK);
|
||||
#define PROTOCOL(Id) RECORD(index_block, Id);
|
||||
|
||||
Reference in New Issue
Block a user