diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-19 18:44:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-19 18:44:59 -0700 |
| commit | 4630e3891c7c833d8a8f42e3755099b478dce3f3 (patch) | |
| tree | 705e6542c481635149a8e1489964a074483a501f /src/codegen | |
| parent | a136c093bf7a48398e36a73e91213f93a4efc503 (diff) | |
| download | zig-4630e3891c7c833d8a8f42e3755099b478dce3f3.tar.gz zig-4630e3891c7c833d8a8f42e3755099b478dce3f3.zip | |
AstGen: implement inline asm output
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/c.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 0fdf5cb01b..441449707a 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -1036,11 +1036,11 @@ fn genAsm(o: *Object, as: *Inst.Assembly) !CValue { } const volatile_string: []const u8 = if (as.is_volatile) "volatile " else ""; try writer.print("__asm {s}(\"{s}\"", .{ volatile_string, as.asm_source }); - if (as.output) |_| { - return o.dg.fail(.{ .node_offset = 0 }, "TODO inline asm output", .{}); + if (as.output_constraint) |_| { + return o.dg.fail(.{ .node_offset = 0 }, "TODO: CBE inline asm output", .{}); } if (as.inputs.len > 0) { - if (as.output == null) { + if (as.output_constraint == null) { try writer.writeAll(" :"); } try writer.writeAll(": "); |
