aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-07 11:17:33 +0100
committergingerBill <bill@gingerbill.org>2022-09-07 11:17:33 +0100
commitd2097e9fdddb19ad71ef56219c22fd0eecb0c65e (patch)
tree7de1ec8d4c4622ce3dc809f1b5bf3e9b0e3bd2d6 /src
parentd325c36eb8d9015db91b61d8049760aafd6ad66f (diff)
Add inline debug generation for assembly target flag (#2028)
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 4a11fd4c3..4eb343fa7 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -1420,7 +1420,7 @@ void lb_generate_code(lbGenerator *gen) {
}
}
- LLVMBool split_debug_inlining = false;
+ LLVMBool split_debug_inlining = build_context.build_mode == BuildMode_Assembly;
LLVMBool debug_info_for_profiling = false;
m->debug_compile_unit = LLVMDIBuilderCreateCompileUnit(m->debug_builder, LLVMDWARFSourceLanguageC99,