Skip to content

Commit dde3116

Browse files
jacobly0mlugg
authored andcommitted
Dwarf: implement new incremental line number update API
1 parent 065e10c commit dde3116

File tree

10 files changed

+840
-455
lines changed

10 files changed

+840
-455
lines changed

ci/x86_64-linux-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ stage3-debug/bin/zig build \
6464

6565
stage3-debug/bin/zig build test docs \
6666
--maxrss 21000000000 \
67-
-Dlldb=$HOME/deps/lldb-zig/Debug-bfeada333/bin/lldb \
67+
-Dlldb=$HOME/deps/lldb-zig/Debug-e0a42bb34/bin/lldb \
6868
-fqemu \
6969
-fwasmtime \
7070
-Dstatic-llvm \

ci/x86_64-linux-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ stage3-release/bin/zig build \
6464

6565
stage3-release/bin/zig build test docs \
6666
--maxrss 21000000000 \
67-
-Dlldb=$HOME/deps/lldb-zig/Release-bfeada333/bin/lldb \
67+
-Dlldb=$HOME/deps/lldb-zig/Release-e0a42bb34/bin/lldb \
6868
-fqemu \
6969
-fwasmtime \
7070
-Dstatic-llvm \

src/InternPool.zig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ pub const TrackedInst = extern struct {
168168
_ => @enumFromInt(@intFromEnum(opt)),
169169
};
170170
}
171+
172+
const debug_state = InternPool.debug_state;
171173
};
172174

173175
pub const Unwrapped = struct {
@@ -187,6 +189,8 @@ pub const TrackedInst = extern struct {
187189
.index = @intFromEnum(tracked_inst_index) & ip.getIndexMask(u32),
188190
};
189191
}
192+
193+
const debug_state = InternPool.debug_state;
190194
};
191195
};
192196

@@ -508,7 +512,7 @@ pub const Nav = struct {
508512
/// The fully-qualified name of this `Nav`.
509513
fqn: NullTerminatedString,
510514
/// This field is populated iff this `Nav` is resolved by semantic analysis.
511-
/// If this is `null`, then `status == .resolved` always.
515+
/// If this is `null`, then `status == .fully_resolved` always.
512516
analysis: ?struct {
513517
namespace: NamespaceIndex,
514518
zir_index: TrackedInst.Index,
@@ -6631,6 +6635,8 @@ pub fn activate(ip: *const InternPool) void {
66316635
_ = OptionalString.debug_state;
66326636
_ = NullTerminatedString.debug_state;
66336637
_ = OptionalNullTerminatedString.debug_state;
6638+
_ = TrackedInst.Index.debug_state;
6639+
_ = TrackedInst.Index.Optional.debug_state;
66346640
_ = Nav.Index.debug_state;
66356641
_ = Nav.Index.Optional.debug_state;
66366642
std.debug.assert(debug_state.intern_pool == null);

0 commit comments

Comments
 (0)