aboutsummaryrefslogtreecommitdiff
path: root/src/link/Plan9.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-01-25 10:28:18 +0100
committerJakub Konka <kubkon@jakubkonka.com>2023-01-25 10:28:18 +0100
commita95d58caf289ecc2ab36cdb30437f634c07b64e4 (patch)
tree4f212ea4060311213df9cb3e24f94bfa7235bffe /src/link/Plan9.zig
parent4983da40d02632217e606098fd8a94bd7732bf0c (diff)
downloadzig-a95d58caf289ecc2ab36cdb30437f634c07b64e4.tar.gz
zig-a95d58caf289ecc2ab36cdb30437f634c07b64e4.zip
self-hosted: rename codegen Result.appended to Result.ok
Diffstat (limited to 'src/link/Plan9.zig')
-rw-r--r--src/link/Plan9.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/link/Plan9.zig b/src/link/Plan9.zig
index 3a76139fe1..e412c78f7f 100644
--- a/src/link/Plan9.zig
+++ b/src/link/Plan9.zig
@@ -299,7 +299,7 @@ pub fn updateFunc(self: *Plan9, module: *Module, func: *Module.Fn, air: Air, liv
},
);
const code = switch (res) {
- .appended => try code_buffer.toOwnedSlice(),
+ .ok => try code_buffer.toOwnedSlice(),
.fail => |em| {
decl.analysis = .codegen_failure;
try module.failed_decls.put(module.gpa, decl_index, em);
@@ -358,7 +358,7 @@ pub fn lowerUnnamedConst(self: *Plan9, tv: TypedValue, decl_index: Module.Decl.I
.parent_atom_index = @enumToInt(decl_index),
});
const code = switch (res) {
- .appended => code_buffer.items,
+ .ok => code_buffer.items,
.fail => |em| {
decl.analysis = .codegen_failure;
try mod.failed_decls.put(mod.gpa, decl_index, em);
@@ -402,7 +402,7 @@ pub fn updateDecl(self: *Plan9, module: *Module, decl_index: Module.Decl.Index)
.parent_atom_index = @enumToInt(decl_index),
});
const code = switch (res) {
- .appended => code_buffer.items,
+ .ok => code_buffer.items,
.fail => |em| {
decl.analysis = .codegen_failure;
try module.failed_decls.put(module.gpa, decl_index, em);