aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorantlilja <liljaanton2001@gmail.com>2024-02-26 01:02:16 +0100
committerantlilja <liljaanton2001@gmail.com>2024-02-26 01:02:16 +0100
commit73a16d440ba7968bab11acddc2129f05e09daa0d (patch)
tree951d1761eee71b74bac3542b3c9d5bb358cbbf16 /src/codegen
parent9754d6d0a0cc69920822b64e35bf73f8775e4eab (diff)
downloadzig-73a16d440ba7968bab11acddc2129f05e09daa0d.tar.gz
zig-73a16d440ba7968bab11acddc2129f05e09daa0d.zip
Builder: Reduce size of DebugLoc abbrev
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm/Builder.zig1
-rw-r--r--src/codegen/llvm/ir.zig11
2 files changed, 5 insertions, 7 deletions
diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig
index af969bf1a3..c3ea7b37da 100644
--- a/src/codegen/llvm/Builder.zig
+++ b/src/codegen/llvm/Builder.zig
@@ -14951,7 +14951,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
.column = location.column,
.scope = @enumFromInt(metadata_adapter.getMetadataIndex(location.scope)),
.inlined_at = @enumFromInt(metadata_adapter.getMetadataIndex(location.inlined_at)),
- .is_implicit = false,
});
has_location = true;
},
diff --git a/src/codegen/llvm/ir.zig b/src/codegen/llvm/ir.zig
index 455251713a..f5c0e535c2 100644
--- a/src/codegen/llvm/ir.zig
+++ b/src/codegen/llvm/ir.zig
@@ -1591,17 +1591,16 @@ pub const FunctionBlock = struct {
pub const DebugLoc = struct {
pub const ops = [_]AbbrevOp{
.{ .literal = 35 },
- .{ .fixed = 32 },
- .{ .fixed = 32 },
- .{ .fixed = 32 },
- .{ .fixed = 32 },
- .{ .fixed = 1 },
+ LineAbbrev,
+ ColumnAbbrev,
+ MetadataAbbrev,
+ MetadataAbbrev,
+ .{ .literal = 0 },
};
line: u32,
column: u32,
scope: Builder.Metadata,
inlined_at: Builder.Metadata,
- is_implicit: bool,
};
pub const DebugLocAgain = struct {