aboutsummaryrefslogtreecommitdiff
path: root/src/link/Wasm/Atom.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-04-30 15:42:21 +0200
committerLuuk de Gram <luuk@degram.dev>2022-05-09 18:51:46 +0200
commit8e1c220be257236565fb28d84dc56045f15be697 (patch)
tree6715e0f845829c9e2a0ab3b25d0a75a866537417 /src/link/Wasm/Atom.zig
parent941b6830b1831c4df5ba369088ff473a012a3b54 (diff)
downloadzig-8e1c220be257236565fb28d84dc56045f15be697.tar.gz
zig-8e1c220be257236565fb28d84dc56045f15be697.zip
wasm: Add basic debug info references
Diffstat (limited to 'src/link/Wasm/Atom.zig')
-rw-r--r--src/link/Wasm/Atom.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/link/Wasm/Atom.zig b/src/link/Wasm/Atom.zig
index fc45648d9a..f56a0995bf 100644
--- a/src/link/Wasm/Atom.zig
+++ b/src/link/Wasm/Atom.zig
@@ -4,6 +4,7 @@ const std = @import("std");
const types = @import("types.zig");
const Wasm = @import("../Wasm.zig");
const Symbol = @import("Symbol.zig");
+const Dwarf = @import("../Dwarf.zig");
const leb = std.leb;
const log = std.log.scoped(.link);
@@ -38,6 +39,9 @@ prev: ?*Atom,
/// When the parent atom is being freed, it will also do so for all local atoms.
locals: std.ArrayListUnmanaged(Atom) = .{},
+/// Represents the debug Atom that holds all debug information of this Atom.
+dbg_info_atom: Dwarf.Atom,
+
/// Represents a default empty wasm `Atom`
pub const empty: Atom = .{
.alignment = 0,
@@ -47,6 +51,7 @@ pub const empty: Atom = .{
.prev = null,
.size = 0,
.sym_index = 0,
+ .dbg_info_atom = undefined,
};
/// Frees all resources owned by this `Atom`.