aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2022-07-19 00:49:22 +0100
committerGitHub <noreply@github.com>2022-07-19 00:49:22 +0100
commit7c990b38338d2fd5f74bf7e1ee47931b9225f279 (patch)
treec5cd7f50e1d6b5bff7496c5b4ad3416b51d6625a /src/llvm_backend_debug.cpp
parent9eb3da0474c7e00d0c246dc60409cf86f7db4e51 (diff)
parent9c059f1a128638f67a96715af1dbd8a668120a25 (diff)
Merge pull request #1877 from fabiansperber/improve-debug-info
Improve debug info
Diffstat (limited to 'src/llvm_backend_debug.cpp')
-rw-r--r--src/llvm_backend_debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/llvm_backend_debug.cpp b/src/llvm_backend_debug.cpp
index 207164c63..29e074473 100644
--- a/src/llvm_backend_debug.cpp
+++ b/src/llvm_backend_debug.cpp
@@ -43,6 +43,10 @@ LLVMMetadataRef lb_debug_location_from_ast(lbProcedure *p, Ast *node) {
GB_ASSERT(node != nullptr);
return lb_debug_location_from_token_pos(p, ast_token(node).pos);
}
+LLVMMetadataRef lb_debug_end_location_from_ast(lbProcedure *p, Ast *node) {
+ GB_ASSERT(node != nullptr);
+ return lb_debug_location_from_token_pos(p, ast_end_token(node).pos);
+}
LLVMMetadataRef lb_debug_type_internal_proc(lbModule *m, Type *type) {
i64 size = type_size_of(type); // Check size