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:
Usama Hameed
2025-02-24 20:21:15 -08:00
committed by GitHub
parent 277518293e
commit 500187cf1e
11 changed files with 320 additions and 20 deletions

View File

@@ -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);