| ... | @@ -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 | } |
| 116 | | 116 | |
| 117 | pub fn updateDecl(self: *Plan9, module: *Module, decl: *Module.Decl) !void { | 117 | pub 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 | } |
| 120 | | 121 | |
| ... | @@ -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 | } |
| 132 | | 133 | |
| 133 | pub fn flushModule(self: *Plan9, comp: *Compilation) !void { | 134 | pub 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(); |
| 136 | | 138 | |
| ... | @@ -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 flush | 305 | // we do all the things in flush |
| | 306 | _ = self; |
| | 307 | _ = module; |
| | 308 | _ = decl; |
| | 309 | _ = exports; |
| 304 | } | 310 | } |
| 305 | pub fn deinit(self: *Plan9) void { | 311 | pub fn deinit(self: *Plan9) void { |
| 306 | self.decl_table.deinit(self.base.allocator); | 312 | self.decl_table.deinit(self.base.allocator); |