diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-06-07 04:51:26 -0400 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-06-12 13:55:41 +0100 |
| commit | c95b1bf2d3c3ae7595e15ad521952b77d5063801 (patch) | |
| tree | a1260ddf1454688e6732a22a6e3c4cc60bd81986 /src/codegen.zig | |
| parent | c4ec382fc806e0cb4484c1cb2edcc5fc40c3c9d8 (diff) | |
| download | zig-c95b1bf2d3c3ae7595e15ad521952b77d5063801.tar.gz zig-c95b1bf2d3c3ae7595e15ad521952b77d5063801.zip | |
x86_64: remove air references from mir
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 5a8f17735a..9199c27dc2 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -180,10 +180,6 @@ pub fn emitFunction( any_mir: *const AnyMir, code: *std.ArrayListUnmanaged(u8), debug_output: link.File.DebugInfoOutput, - /// TODO: this parameter needs to be removed. We should not still hold AIR this late - /// in the pipeline. Any information needed to call emit must be stored in MIR. - /// This is `undefined` if the backend supports the `separate_thread` feature. - air: *const Air, ) CodeGenError!void { const zcu = pt.zcu; const func = zcu.funcInfo(func_index); @@ -199,7 +195,7 @@ pub fn emitFunction( => |backend| { dev.check(devFeatureForBackend(backend)); const mir = &@field(any_mir, AnyMir.tag(backend)); - return mir.emit(lf, pt, src_loc, func_index, code, debug_output, air); + return mir.emit(lf, pt, src_loc, func_index, code, debug_output); }, } } |
