aboutsummaryrefslogtreecommitdiff
path: root/src/link/NvPtx.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/link/NvPtx.zig')
-rw-r--r--src/link/NvPtx.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/link/NvPtx.zig b/src/link/NvPtx.zig
index 1f5af5b86e..111b59fc3b 100644
--- a/src/link/NvPtx.zig
+++ b/src/link/NvPtx.zig
@@ -106,18 +106,18 @@ pub fn freeDecl(self: *NvPtx, decl_index: InternPool.DeclIndex) void {
return self.llvm_object.freeDecl(decl_index);
}
-pub fn flush(self: *NvPtx, comp: *Compilation, prog_node: *std.Progress.Node) link.File.FlushError!void {
- return self.flushModule(comp, prog_node);
+pub fn flush(self: *NvPtx, arena: Allocator, prog_node: *std.Progress.Node) link.File.FlushError!void {
+ return self.flushModule(arena, prog_node);
}
-pub fn flushModule(self: *NvPtx, comp: *Compilation, prog_node: *std.Progress.Node) link.File.FlushError!void {
+pub fn flushModule(self: *NvPtx, arena: Allocator, prog_node: *std.Progress.Node) link.File.FlushError!void {
if (build_options.skip_non_native)
@panic("Attempted to compile for architecture that was disabled by build configuration");
// The code that was here before mutated the Compilation's file emission mechanism.
// That's not supposed to happen in flushModule, so I deleted the code.
+ _ = arena;
_ = self;
- _ = comp;
_ = prog_node;
@panic("TODO: rewrite the NvPtx.flushModule function");
}