Skip to content

Commit

Permalink
Set debug level to 1 in code_llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Jun 19, 2023
1 parent 62339ba commit 203e645
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2088,8 +2088,10 @@ void jl_get_llvmf_defn_impl(jl_llvmf_dump_t* dump, jl_method_instance_t *mi, siz
// differ very significantly from the actual non-imaging mode code.
// // Force imaging mode for names of pointers
// output.imaging = true;
// Force max debug info for introspection
output.debug_level = 2;
// Force at least medium debug info for introspection
// No debug info = no variable names,
// max debug info = llvm.dbg.declare/value intrinsics which clutter IR output
output.debug_level = std::max(1, static_cast<int>(jl_options.debug_level));
auto decls = jl_emit_code(m, mi, src, jlrettype, output);
JL_UNLOCK(&jl_codegen_lock); // Might GC

Expand Down

0 comments on commit 203e645

Please sign in to comment.