fix debug info and add it all to the llvm backend

This commit is contained in:
Brendan Hansknecht 2023-12-04 11:39:12 -08:00
parent 7b1c009ca2
commit 496cd6710a
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
6 changed files with 8 additions and 22 deletions

View file

@ -4717,6 +4717,8 @@ fn expose_function_to_host_help_c_abi_v2<'a, 'ctx>(
let subprogram = env.new_subprogram(c_function_name);
c_function.set_subprogram(subprogram);
debug_info_init!(env, c_function);
// STEP 2: build the exposed function's body
let builder = env.builder;
let context = env.context;