authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-01-30 23:09:55+02:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-02-01 15:22:36+02:00
logde9606bed51ed59530b5f9f98609aded14398b98
treec3c675cd28014303a2a65d67d6a631d5793b7ad8
parent07dbff4f4479597c6d93d273b7ba7471ba082f49

Module: remove dependency handling of test function array

Follow up to 1ccc68f307d4a2208118a8798d43119d63b53e05

1 files changed, 0 insertions(+), 7 deletions(-)

src/Module.zig-7
......@@ -5248,11 +5248,6 @@ pub fn populateTestFunctions(
52485248 const test_fn_vals = try gpa.alloc(InternPool.Index, mod.test_functions.count());
52495249 defer gpa.free(test_fn_vals);
52505250
5251 // Add a dependency on each test name and function pointer.
5252 var array_decl_dependencies = std.ArrayListUnmanaged(Decl.Index){};
5253 defer array_decl_dependencies.deinit(gpa);
5254 try array_decl_dependencies.ensureUnusedCapacity(gpa, test_fn_vals.len * 2);
5255
52565251 for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| {
52575252 const test_decl = mod.declPtr(test_decl_index);
52585253 // TODO: write something like getCoercedInts to avoid needing to dupe
......@@ -5272,8 +5267,6 @@ pub fn populateTestFunctions(
52725267 });
52735268 break :n test_name_decl_index;
52745269 };
5275 array_decl_dependencies.appendAssumeCapacity(test_decl_index);
5276 array_decl_dependencies.appendAssumeCapacity(test_name_decl_index);
52775270 try mod.linkerUpdateDecl(test_name_decl_index);
52785271
52795272 const test_fn_fields = .{