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 {...@@ -2556,7 +2556,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type {
2556 } else {2556 } else {
2557 return self.fail(inst.base.src, "TODO implement calling runtime known function pointer", .{});2557 return self.fail(inst.base.src, "TODO implement calling runtime known function pointer", .{});
2558 }2558 }
2559 } else if (self.bin_file.cast(link.File.Plan9)) |p9| {2559 } else if (self.bin_file.cast(link.File.Plan9)) |_| {
2560 switch (arch) {2560 switch (arch) {
2561 .x86_64 => {2561 .x86_64 => {
2562 for (info.args) |mc_arg, arg_i| {2562 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 {...@@ -115,6 +115,7 @@ pub fn createEmpty(gpa: *Allocator, options: link.Options) !*Plan9 {
115}115}
116116
117pub fn updateDecl(self: *Plan9, module: *Module, decl: *Module.Decl) !void {117pub fn updateDecl(self: *Plan9, module: *Module, decl: *Module.Decl) !void {
118 _ = module;
118 _ = try self.decl_table.getOrPut(self.base.allocator, decl);119 _ = try self.decl_table.getOrPut(self.base.allocator, decl);
119}120}
120121
...@@ -131,6 +132,7 @@ pub fn flush(self: *Plan9, comp: *Compilation) !void {...@@ -131,6 +132,7 @@ pub fn flush(self: *Plan9, comp: *Compilation) !void {
131}132}
132133
133pub fn flushModule(self: *Plan9, comp: *Compilation) !void {134pub fn flushModule(self: *Plan9, comp: *Compilation) !void {
135 _ = comp;
134 const tracy = trace(@src());136 const tracy = trace(@src());
135 defer tracy.end();137 defer tracy.end();
136138
...@@ -301,6 +303,10 @@ pub fn updateDeclExports(...@@ -301,6 +303,10 @@ pub fn updateDeclExports(
301 exports: []const *Module.Export,303 exports: []const *Module.Export,
302) !void {304) !void {
303 // we do all the things in flush305 // we do all the things in flush
306 _ = self;
307 _ = module;
308 _ = decl;
309 _ = exports;
304}310}
305pub fn deinit(self: *Plan9) void {311pub fn deinit(self: *Plan9) void {
306 self.decl_table.deinit(self.base.allocator);312 self.decl_table.deinit(self.base.allocator);