aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-04 14:17:47 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-02-04 14:17:47 -0700
commit09cee1d5e34dd4187242a693c2d7b5a9d1e689b1 (patch)
tree70be147cdf59171bda9079abb3c5fe318ffad72b /src/Module.zig
parentfab9b7110ed1fa7bb082aad5e095047441db2b24 (diff)
parentb7c96c3bbdc0e2172cf9edb0c9c7c52f86c2311e (diff)
downloadzig-09cee1d5e34dd4187242a693c2d7b5a9d1e689b1.tar.gz
zig-09cee1d5e34dd4187242a693c2d7b5a9d1e689b1.zip
Merge remote-tracking branch 'origin/master' into llvm16
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 3bb15e78c3..3243c36ee5 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -531,9 +531,6 @@ pub const Decl = struct {
/// What kind of a declaration is this.
kind: Kind,
- /// TODO remove this once Wasm backend catches up
- fn_link: ?link.File.Wasm.FnData = null,
-
/// The shallow set of other decls whose typed_value could possibly change if this Decl's
/// typed_value is modified.
dependants: DepsTable = .{},
@@ -5247,11 +5244,6 @@ pub fn clearDecl(
if (decl.has_tv) {
if (decl.ty.isFnOrHasRuntimeBits()) {
mod.comp.bin_file.freeDecl(decl_index);
-
- decl.fn_link = switch (mod.comp.bin_file.tag) {
- .wasm => link.File.Wasm.FnData.empty,
- else => null,
- };
}
if (decl.getInnerNamespace()) |namespace| {
try namespace.deleteAllDecls(mod, outdated_decls);
@@ -5652,10 +5644,6 @@ pub fn allocateNewDecl(
.deletion_flag = false,
.zir_decl_index = 0,
.src_scope = src_scope,
- .fn_link = switch (mod.comp.bin_file.tag) {
- .wasm => link.File.Wasm.FnData.empty,
- else => null,
- },
.generation = 0,
.is_pub = false,
.is_exported = false,