diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-08 07:41:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 07:41:39 +0200 |
| commit | fc2c1883b36a6ba8c7303d12b57147656dc7dd70 (patch) | |
| tree | 8b68413d10d994377456b9a6a71473caa8e564d0 /src/codegen | |
| parent | 9e49652757da1946abd57a1a3af15a7bbcf8491c (diff) | |
| parent | 4ba0e7d424a7c0af55c8085c659e9205560d3095 (diff) | |
| download | zig-fc2c1883b36a6ba8c7303d12b57147656dc7dd70.tar.gz zig-fc2c1883b36a6ba8c7303d12b57147656dc7dd70.zip | |
Merge pull request #24362 (remove async, await, usingnamespace)
remove `async` and `await` keywords; remove `usingnamespace`
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/llvm.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 4e70c9fccf..5135095f69 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -2758,7 +2758,7 @@ pub const Object = struct { llvm_arg_i += 1; } - if (fn_info.cc == .@"async") { + if (fn_info.cc == .async) { @panic("TODO: LLVM backend lower async function"); } @@ -2910,7 +2910,7 @@ pub const Object = struct { try attributes.addFnAttr(.nounwind, &o.builder); if (owner_mod.unwind_tables != .none) { try attributes.addFnAttr( - .{ .uwtable = if (owner_mod.unwind_tables == .@"async") .@"async" else .sync }, + .{ .uwtable = if (owner_mod.unwind_tables == .async) .async else .sync }, &o.builder, ); } @@ -5273,7 +5273,7 @@ pub const FuncGen = struct { switch (modifier) { .auto, .always_tail => {}, .never_tail, .never_inline => try attributes.addFnAttr(.@"noinline", &o.builder), - .async_kw, .no_async, .always_inline, .compile_time => unreachable, + .no_suspend, .always_inline, .compile_time => unreachable, } const ret_ptr = if (!sret) null else blk: { @@ -5488,7 +5488,7 @@ pub const FuncGen = struct { .auto, .never_inline => .normal, .never_tail => .notail, .always_tail => .musttail, - .async_kw, .no_async, .always_inline, .compile_time => unreachable, + .no_suspend, .always_inline, .compile_time => unreachable, }, toLlvmCallConvTag(fn_info.cc, target).?, try attributes.finish(&o.builder), @@ -11861,7 +11861,7 @@ fn toLlvmCallConvTag(cc_tag: std.builtin.CallingConvention.Tag, target: *const s } return switch (cc_tag) { .@"inline" => unreachable, - .auto, .@"async" => .fastcc, + .auto, .async => .fastcc, .naked => .ccc, .x86_64_sysv => .x86_64_sysvcc, .x86_64_win => .win64cc, @@ -12369,7 +12369,7 @@ const ParamTypeIterator = struct { return .byval; } }, - .@"async" => { + .async => { @panic("TODO implement async function lowering in the LLVM backend"); }, .x86_64_sysv => return it.nextSystemV(ty), @@ -12624,7 +12624,7 @@ fn ccAbiPromoteInt( ) ?std.builtin.Signedness { const target = zcu.getTarget(); switch (cc) { - .auto, .@"inline", .@"async" => return null, + .auto, .@"inline", .async => return null, else => {}, } const int_info = switch (ty.zigTypeTag(zcu)) { |
