diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 11:38:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 13:39:16 -0700 |
| commit | aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2 (patch) | |
| tree | 4ddab249d8aabafb74221d2d96812b554eedfd39 /src/codegen/llvm.zig | |
| parent | a59c35cbf86e0266d5074ce219feef8436e45268 (diff) | |
| download | zig-aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2.tar.gz zig-aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2.zip | |
zig fmt
Diffstat (limited to 'src/codegen/llvm.zig')
| -rw-r--r-- | src/codegen/llvm.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index d2d6f431d7..827c6b796d 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, ); } @@ -11871,7 +11871,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, @@ -12379,7 +12379,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), @@ -12634,7 +12634,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)) { |
