aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-07-18 12:49:29 +0100
committergingerBill <bill@gingerbill.org>2022-07-18 12:49:29 +0100
commit6c7e5748a8ee80b01b99fe41192d4aac32651849 (patch)
tree41f8a0f243010e561e81a2f8f437b5ff0f7f873b /src/llvm_backend_expr.cpp
parent0b0c6da8b0a5f2d31760d579aceae1eb5e8d6671 (diff)
Integrate numerous debug fixes from #1877
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index 59f75d43f..624d06188 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -3068,17 +3068,6 @@ lbValue lb_build_expr_internal(lbProcedure *p, Ast *expr) {
return lb_const_value(p->module, type, tv.value);
}
- #if 0
- LLVMMetadataRef prev_debug_location = nullptr;
- if (p->debug_info != nullptr) {
- prev_debug_location = LLVMGetCurrentDebugLocation2(p->builder);
- LLVMSetCurrentDebugLocation2(p->builder, lb_debug_location_from_ast(p, expr));
- }
- defer (if (prev_debug_location != nullptr) {
- LLVMSetCurrentDebugLocation2(p->builder, prev_debug_location);
- });
- #endif
-
switch (expr->kind) {
case_ast_node(bl, BasicLit, expr);
TokenPos pos = bl->token.pos;