diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-01-01 20:16:48 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-01-05 02:20:56 +0000 |
| commit | 065e10c95ccca509afecfecc849da9114e0000b2 (patch) | |
| tree | bd1c4bee8e3da377fa1da9254b442900c538a45d /src/Compilation.zig | |
| parent | 136c5a916ed7e421461ac5839cc0e4c289b80f16 (diff) | |
| download | zig-065e10c95ccca509afecfecc849da9114e0000b2.tar.gz zig-065e10c95ccca509afecfecc849da9114e0000b2.zip | |
link: new incremental line number update API
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |
