mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Builder: Reduce size of DebugLoc abbrev
This commit is contained in:
parent
9754d6d0a0
commit
73a16d440b
@ -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;
|
||||
},
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user