From 065e10c95ccca509afecfecc849da9114e0000b2 Mon Sep 17 00:00:00 2001 From: mlugg Date: Wed, 1 Jan 2025 20:16:48 +0000 Subject: link: new incremental line number update API --- src/Compilation.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 4a32b3c457..fc2e25febf 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -348,6 +348,7 @@ const Job = union(enum) { /// Corresponds to the task in `link.Task`. /// Only needed for backends that haven't yet been updated to not race against Sema. codegen_type: InternPool.Index, + update_line_number: InternPool.TrackedInst.Index, /// The `AnalUnit`, which is *not* a `func`, must be semantically analyzed. /// This may be its first time being analyzed, or it may be outdated. /// If the unit is a function, a `codegen_func` job will then be queued. @@ -3718,6 +3719,9 @@ fn processOneJob(tid: usize, comp: *Compilation, job: Job, prog_node: std.Progre .codegen_type => |ty| { comp.dispatchCodegenTask(tid, .{ .codegen_type = ty }); }, + .update_line_number => |ti| { + comp.dispatchCodegenTask(tid, .{ .update_line_number = ti }); + }, .analyze_func => |func| { const named_frame = tracy.namedFrame("analyze_func"); defer named_frame.end(); -- cgit v1.2.3