aboutsummaryrefslogtreecommitdiff
path: root/src/Sema
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-05-28 00:31:16 +0100
committermlugg <mlugg@mlugg.co.uk>2025-06-12 13:55:39 +0100
commit424e6ac54b0f8bbfb43f24e28c71ac72169f3719 (patch)
treef979f0e580e4ebff81eac779da8cb4889d57f1b1 /src/Sema
parent4a02e080d127cc577d40f8ea5d68122ba8ac4243 (diff)
downloadzig-424e6ac54b0f8bbfb43f24e28c71ac72169f3719.tar.gz
zig-424e6ac54b0f8bbfb43f24e28c71ac72169f3719.zip
compiler: minor refactors to ZCU linking
* The `codegen_nav`, `codegen_func`, `codegen_type` tasks are renamed to `link_nav`, `link_func`, and `link_type`, to more accurately reflect their purpose of sending data to the *linker*. Currently, `link_func` remains responsible for codegen; this will change in an upcoming commit. * Don't go on a pointless detour through `PerThread` when linking ZCU functions/`Nav`s; so, the `linkerUpdateNav` etc logic now lives in `link.zig`. Currently, `linkerUpdateFunc` is an exception, because it has broader responsibilities including codegen, but this will be solved in an upcoming commit.
Diffstat (limited to 'src/Sema')
-rw-r--r--src/Sema/LowerZon.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema/LowerZon.zig b/src/Sema/LowerZon.zig
index 77065a07e8..192c2e2d56 100644
--- a/src/Sema/LowerZon.zig
+++ b/src/Sema/LowerZon.zig
@@ -194,7 +194,7 @@ fn lowerExprAnonResTy(self: *LowerZon, node: Zoir.Node.Index) CompileError!Inter
codegen_type: {
if (pt.zcu.comp.config.use_llvm) break :codegen_type;
if (self.block.ownerModule().strip) break :codegen_type;
- try pt.zcu.comp.queueJob(.{ .codegen_type = wip.index });
+ try pt.zcu.comp.queueJob(.{ .link_type = wip.index });
}
break :ty wip.finish(ip, new_namespace_index);
},