authorgravatar for jacoblevgw@gmail.comJacob G-W <jacoblevgw@gmail.com> 2021-06-23 23:21:02-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-08 14:12:08-07:00
log4eb778fc3eeec62c5c45ccc0a21631ff757d8a23
tree0b47d20243451561992f6b6d4019d0b77016bae3
parent1c2facaf6b670863edf30d7c9d1d47368c4a90cc

plan9 linker: remove unused stuff


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

src/codegen.zig+1-1
......@@ -2556,7 +2556,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type {
25562556 } else {
25572557 return self.fail(inst.base.src, "TODO implement calling runtime known function pointer", .{});
25582558 }
2559 } else if (self.bin_file.cast(link.File.Plan9)) |p9| {
2559 } else if (self.bin_file.cast(link.File.Plan9)) |_| {
25602560 switch (arch) {
25612561 .x86_64 => {
25622562 for (info.args) |mc_arg, arg_i| {
src/link/Plan9.zig+6
......@@ -115,6 +115,7 @@ pub fn createEmpty(gpa: *Allocator, options: link.Options) !*Plan9 {
115115}
116116
117117pub fn updateDecl(self: *Plan9, module: *Module, decl: *Module.Decl) !void {
118 _ = module;
118119 _ = try self.decl_table.getOrPut(self.base.allocator, decl);
119120}
120121
......@@ -131,6 +132,7 @@ pub fn flush(self: *Plan9, comp: *Compilation) !void {
131132}
132133
133134pub fn flushModule(self: *Plan9, comp: *Compilation) !void {
135 _ = comp;
134136 const tracy = trace(@src());
135137 defer tracy.end();
136138
......@@ -301,6 +303,10 @@ pub fn updateDeclExports(
301303 exports: []const *Module.Export,
302304) !void {
303305 // we do all the things in flush
306 _ = self;
307 _ = module;
308 _ = decl;
309 _ = exports;
304310}
305311pub fn deinit(self: *Plan9) void {
306312 self.decl_table.deinit(self.base.allocator);