authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-26 01:02:16+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-26 01:02:16+01:00
log73a16d440ba7968bab11acddc2129f05e09daa0d
tree951d1761eee71b74bac3542b3c9d5bb358cbbf16
parent9754d6d0a0cc69920822b64e35bf73f8775e4eab

Builder: Reduce size of DebugLoc abbrev


2 files changed, 5 insertions(+), 7 deletions(-)

src/codegen/llvm/Builder.zig-1
......@@ -14951,7 +14951,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
1495114951 .column = location.column,
1495214952 .scope = @enumFromInt(metadata_adapter.getMetadataIndex(location.scope)),
1495314953 .inlined_at = @enumFromInt(metadata_adapter.getMetadataIndex(location.inlined_at)),
14954 .is_implicit = false,
1495514954 });
1495614955 has_location = true;
1495714956 },
src/codegen/llvm/ir.zig+5-6
......@@ -1591,17 +1591,16 @@ pub const FunctionBlock = struct {
15911591 pub const DebugLoc = struct {
15921592 pub const ops = [_]AbbrevOp{
15931593 .{ .literal = 35 },
1594 .{ .fixed = 32 },
1595 .{ .fixed = 32 },
1596 .{ .fixed = 32 },
1597 .{ .fixed = 32 },
1598 .{ .fixed = 1 },
1594 LineAbbrev,
1595 ColumnAbbrev,
1596 MetadataAbbrev,
1597 MetadataAbbrev,
1598 .{ .literal = 0 },
15991599 };
16001600 line: u32,
16011601 column: u32,
16021602 scope: Builder.Metadata,
16031603 inlined_at: Builder.Metadata,
1604 is_implicit: bool,
16051604 };
16061605
16071606 pub const DebugLocAgain = struct {