aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-08-17 18:47:27 -0400
committerGitHub <noreply@github.com>2024-08-17 18:47:27 -0400
commit2b05e85107dd1c637ab40f8b145b232d18e8d6c6 (patch)
tree900da9abde9fd672a2e618e2b8f7233c71eab403 /src/link
parentcf939b096acfca67c87b698827f64d977853d722 (diff)
parentd4e3d0e676fefbe7cf3ba15576ba9574e73a6449 (diff)
downloadzig-2b05e85107dd1c637ab40f8b145b232d18e8d6c6.tar.gz
zig-2b05e85107dd1c637ab40f8b145b232d18e8d6c6.zip
Merge pull request #21111 from jacobly0/self-dwarf
Dwarf: debug info progress
Diffstat (limited to 'src/link')
-rw-r--r--src/link/Dwarf.zig10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/link/Dwarf.zig b/src/link/Dwarf.zig
index 15620788eb..5bc7ae5dc1 100644
--- a/src/link/Dwarf.zig
+++ b/src/link/Dwarf.zig
@@ -2338,7 +2338,6 @@ fn updateType(
const ptr_child_type = Type.fromInterned(ptr_type.child);
try uleb128(diw, @intFromEnum(AbbrevCode.ptr_type));
try wip_nav.strp(name);
- try diw.writeByte(@intFromBool(ptr_type.flags.is_allowzero));
try uleb128(diw, ptr_type.flags.alignment.toByteUnits() orelse
ptr_child_type.abiAlignment(pt).toByteUnits().?);
try diw.writeByte(@intFromEnum(ptr_type.flags.address_space));
@@ -2486,10 +2485,10 @@ fn updateType(
{
try uleb128(diw, @intFromEnum(AbbrevCode.generated_field));
try wip_nav.strp("is_error");
- const is_error_field_type = Type.fromInterned(try pt.intern(.{
- .opt_type = error_union_type.error_set_type,
- }));
- try wip_nav.refType(is_error_field_type);
+ try wip_nav.refType(Type.fromInterned(try pt.intern(.{ .int_type = .{
+ .signedness = .unsigned,
+ .bits = pt.zcu.errorSetBits(),
+ } })));
try uleb128(diw, error_union_error_set_offset);
try uleb128(diw, @intFromEnum(AbbrevCode.unsigned_tagged_union_field));
@@ -3612,7 +3611,6 @@ const AbbrevCode = enum(u8) {
.tag = .pointer_type,
.attrs = &.{
.{ .name, .strp },
- .{ .ZIG_is_allowzero, .flag },
.{ .alignment, .udata },
.{ .address_class, .data1 },
.{ .type, .ref_addr },