mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Use llvm.dbg.declare for procedure parameters rather than llvm.dbg.value
This commit is contained in:
@@ -1042,7 +1042,8 @@ void lb_add_debug_param_variable(lbProcedure *p, LLVMValueRef ptr, Type *type, T
|
|||||||
// NOTE(bill, 2022-02-01): For parameter values, you must insert them at the end of the decl block
|
// NOTE(bill, 2022-02-01): For parameter values, you must insert them at the end of the decl block
|
||||||
// The reason is that if the parameter is at index 0 and a pointer, there is not such things as an
|
// The reason is that if the parameter is at index 0 and a pointer, there is not such things as an
|
||||||
// instruction "before" it.
|
// instruction "before" it.
|
||||||
LLVMDIBuilderInsertDbgValueAtEnd(m->debug_builder, storage, var_info, llvm_expr, llvm_debug_loc, block->block);
|
LLVMDIBuilderInsertDeclareAtEnd(m->debug_builder, storage, var_info, llvm_expr, llvm_debug_loc, block->block);
|
||||||
|
// LLVMDIBuilderInsertDbgValueAtEnd(m->debug_builder, storage, var_info, llvm_expr, llvm_debug_loc, block->block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user