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...@@ -14951,7 +14951,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14951 .column = location.column,14951 .column = location.column,
14952 .scope = @enumFromInt(metadata_adapter.getMetadataIndex(location.scope)),14952 .scope = @enumFromInt(metadata_adapter.getMetadataIndex(location.scope)),
14953 .inlined_at = @enumFromInt(metadata_adapter.getMetadataIndex(location.inlined_at)),14953 .inlined_at = @enumFromInt(metadata_adapter.getMetadataIndex(location.inlined_at)),
14954 .is_implicit = false,
14955 });14954 });
14956 has_location = true;14955 has_location = true;
14957 },14956 },
src/codegen/llvm/ir.zig+5-6
...@@ -1591,17 +1591,16 @@ pub const FunctionBlock = struct {...@@ -1591,17 +1591,16 @@ pub const FunctionBlock = struct {
1591 pub const DebugLoc = struct {1591 pub const DebugLoc = struct {
1592 pub const ops = [_]AbbrevOp{1592 pub const ops = [_]AbbrevOp{
1593 .{ .literal = 35 },1593 .{ .literal = 35 },
1594 .{ .fixed = 32 },1594 LineAbbrev,
1595 .{ .fixed = 32 },1595 ColumnAbbrev,
1596 .{ .fixed = 32 },1596 MetadataAbbrev,
1597 .{ .fixed = 32 },1597 MetadataAbbrev,
1598 .{ .fixed = 1 },1598 .{ .literal = 0 },
1599 };1599 };
1600 line: u32,1600 line: u32,
1601 column: u32,1601 column: u32,
1602 scope: Builder.Metadata,1602 scope: Builder.Metadata,
1603 inlined_at: Builder.Metadata,1603 inlined_at: Builder.Metadata,
1604 is_implicit: bool,
1605 };1604 };
16061605
1607 pub const DebugLocAgain = struct {1606 pub const DebugLocAgain = struct {