Skip to content

Commit bda4cf2

Browse files
Emit a multi-map of Sierra to Cairo variables in FunctionDebugInfo
1 parent 3ce5806 commit bda4cf2

5 files changed

Lines changed: 275 additions & 86 deletions

File tree

crates/cairo-lang-compiler/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ pub fn compile_prepared_db_program_artifact_for_functions<'db>(
365365

366366
if compiler_config.add_functions_debug_info {
367367
annotations.extend(Annotations::from(
368-
sierra_program_with_debug.debug_info.functions_info.extract_serializable_debug_info(db),
368+
sierra_program_with_debug.debug_info.functions_info.extract_serializable_debug_info(
369+
db,
370+
&sierra_program_with_debug.program,
371+
&sierra_program_with_debug.debug_info.statements_locations,
372+
),
369373
))
370374
}
371375

0 commit comments

Comments
 (0)