aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2024-01-30 23:09:55 +0200
committerVeikka Tuominen <git@vexu.eu>2024-02-01 15:22:36 +0200
commitde9606bed51ed59530b5f9f98609aded14398b98 (patch)
treec3c675cd28014303a2a65d67d6a631d5793b7ad8 /src/Module.zig
parent07dbff4f4479597c6d93d273b7ba7471ba082f49 (diff)
downloadzig-de9606bed51ed59530b5f9f98609aded14398b98.tar.gz
zig-de9606bed51ed59530b5f9f98609aded14398b98.zip
Module: remove dependency handling of test function array
Follow up to 1ccc68f307d4a2208118a8798d43119d63b53e05
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 499eb02f1e..221ea041b5 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -5248,11 +5248,6 @@ pub fn populateTestFunctions(
const test_fn_vals = try gpa.alloc(InternPool.Index, mod.test_functions.count());
defer gpa.free(test_fn_vals);
- // Add a dependency on each test name and function pointer.
- var array_decl_dependencies = std.ArrayListUnmanaged(Decl.Index){};
- defer array_decl_dependencies.deinit(gpa);
- try array_decl_dependencies.ensureUnusedCapacity(gpa, test_fn_vals.len * 2);
-
for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| {
const test_decl = mod.declPtr(test_decl_index);
// TODO: write something like getCoercedInts to avoid needing to dupe
@@ -5272,8 +5267,6 @@ pub fn populateTestFunctions(
});
break :n test_name_decl_index;
};
- array_decl_dependencies.appendAssumeCapacity(test_decl_index);
- array_decl_dependencies.appendAssumeCapacity(test_name_decl_index);
try mod.linkerUpdateDecl(test_name_decl_index);
const test_fn_fields = .{