diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-06 18:35:58 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-08 09:46:27 +0100 |
| commit | ba17552b4eb8def495053013eebbe39fc324c8ae (patch) | |
| tree | 33f871441f432bfdee7f6f555b95062be565ded8 /src/link/MachO/Atom.zig | |
| parent | 38c161afabe1dc7d0df7ad981d70b962ef87120a (diff) | |
| download | zig-ba17552b4eb8def495053013eebbe39fc324c8ae.tar.gz zig-ba17552b4eb8def495053013eebbe39fc324c8ae.zip | |
dwarf: move all dwarf into standalone module
Hook up Elf and MachO linkers to the new solution.
Diffstat (limited to 'src/link/MachO/Atom.zig')
| -rw-r--r-- | src/link/MachO/Atom.zig | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/link/MachO/Atom.zig b/src/link/MachO/Atom.zig index d0d82a12af..4e58946735 100644 --- a/src/link/MachO/Atom.zig +++ b/src/link/MachO/Atom.zig @@ -13,6 +13,7 @@ const trace = @import("../../tracy.zig").trace; const Allocator = mem.Allocator; const Arch = std.Target.Cpu.Arch; +const Dwarf = @import("../Dwarf.zig"); const MachO = @import("../MachO.zig"); const Object = @import("Object.zig"); const StringIndexAdapter = std.hash_map.StringIndexAdapter; @@ -71,14 +72,7 @@ stab: ?Stab = null, next: ?*Atom, prev: ?*Atom, -/// Previous/next linked list pointers. -/// This is the linked list node for this Decl's corresponding .debug_info tag. -dbg_info_prev: ?*Atom, -dbg_info_next: ?*Atom, -/// Offset into .debug_info pointing to the tag for this Decl. -dbg_info_off: u32, -/// Size of the .debug_info tag for this Decl, not including padding. -dbg_info_len: u32, +dbg_info_atom: Dwarf.DebugInfoAtom, dirty: bool = true, @@ -188,10 +182,7 @@ pub const empty = Atom{ .alignment = 0, .prev = null, .next = null, - .dbg_info_prev = null, - .dbg_info_next = null, - .dbg_info_off = undefined, - .dbg_info_len = undefined, + .dbg_info_atom = undefined, }; pub fn deinit(self: *Atom, allocator: Allocator) void { |
