authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-27 17:05:55+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-28 14:46:43+01:00
log5c2e463ecd9070638fa623b3e5856188e4550a78
tree093dc31173822949d16b8e43aacab8018d28ba15
parent40f99862e1251dc0d4ef915308d8f0985d37fb2c

LLVM: Don't create a debug lexical block when inlining


1 files changed, 1 insertions(+), 8 deletions(-)

src/codegen/llvm.zig+1-8
...@@ -6637,7 +6637,7 @@ pub const FuncGen = struct {...@@ -6637,7 +6637,7 @@ pub const FuncGen = struct {
6637 .return_type = .void_type,6637 .return_type = .void_type,
6638 });6638 });
66396639
6640 const subprogram = try o.builder.debugSubprogram(6640 self.scope = try o.builder.debugSubprogram(
6641 self.file,6641 self.file,
6642 try o.builder.metadataString(zcu.intern_pool.stringToSlice(decl.name)),6642 try o.builder.metadataString(zcu.intern_pool.stringToSlice(decl.name)),
6643 try o.builder.metadataString(zcu.intern_pool.stringToSlice(fqn)),6643 try o.builder.metadataString(zcu.intern_pool.stringToSlice(fqn)),
...@@ -6655,13 +6655,6 @@ pub const FuncGen = struct {...@@ -6655,13 +6655,6 @@ pub const FuncGen = struct {
6655 o.debug_compile_unit,6655 o.debug_compile_unit,
6656 );6656 );
66576657
6658 const lexical_block = try o.builder.debugLexicalBlock(
6659 subprogram,
6660 self.file,
6661 line_number,
6662 1,
6663 );
6664 self.scope = lexical_block;
6665 self.base_line = decl.src_line;6658 self.base_line = decl.src_line;
6666 const inlined_at_location = try self.wip.debug_location.toMetadata(&o.builder);6659 const inlined_at_location = try self.wip.debug_location.toMetadata(&o.builder);
6667 self.wip.debug_location = .{6660 self.wip.debug_location = .{