diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-18 19:41:32 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-18 19:41:32 -0700 |
| commit | 4e1e5ab6221b72ef2be9f1fb40c2e6d1235718fe (patch) | |
| tree | 2210dfbf4e6d445b6f3e6cdba4e6d18e5a41cbde /src/Compilation.zig | |
| parent | 123076ea88a809888692b308ab5bb214dc3a2caf (diff) | |
| download | zig-4e1e5ab6221b72ef2be9f1fb40c2e6d1235718fe.tar.gz zig-4e1e5ab6221b72ef2be9f1fb40c2e6d1235718fe.zip | |
stage2: make AIR not reference ZIR for inline assembly
Instead it stores all the information it needs to into AIR.
closes #10784
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index e776b43508..118fa92a00 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2778,7 +2778,7 @@ fn processOneJob(comp: *Compilation, job: Job, main_progress_node: *std.Progress errdefer if (!liveness_frame_ended) liveness_frame.end(); log.debug("analyze liveness of {s}", .{decl.name}); - var liveness = try Liveness.analyze(gpa, air, decl.getFileScope().zir); + var liveness = try Liveness.analyze(gpa, air); defer liveness.deinit(gpa); liveness_frame.end(); @@ -2786,7 +2786,7 @@ fn processOneJob(comp: *Compilation, job: Job, main_progress_node: *std.Progress if (builtin.mode == .Debug and comp.verbose_air) { std.debug.print("# Begin Function AIR: {s}:\n", .{decl.name}); - @import("print_air.zig").dump(gpa, air, decl.getFileScope().zir, liveness); + @import("print_air.zig").dump(gpa, air, liveness); std.debug.print("# End Function AIR: {s}\n\n", .{decl.name}); } |
