mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add support for serializing debug_value instructions (#78056)
This patch adds support for serialization of debug value instructions. Enablement is currently gated behind the -experimental-serialize-debug-info flag. Previously, debug_value instructions were lost during serialization. This made it harder to debug cross module inlined functions.
This commit is contained in:
@@ -964,6 +964,8 @@ void Serializer::writeBlockInfoBlock() {
|
||||
BLOCK_RECORD(sil_block, SIL_DEBUG_SCOPE_REF);
|
||||
BLOCK_RECORD(sil_block, SIL_SOURCE_LOC);
|
||||
BLOCK_RECORD(sil_block, SIL_SOURCE_LOC_REF);
|
||||
BLOCK_RECORD(sil_block, SIL_DEBUG_VALUE);
|
||||
BLOCK_RECORD(sil_block, SIL_DEBUG_VALUE_DELIMITER);
|
||||
|
||||
|
||||
BLOCK(SIL_INDEX_BLOCK);
|
||||
|
||||
Reference in New Issue
Block a user