diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-10-15 02:27:18 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-10-19 19:15:23 +0100 |
| commit | 2d9a167cd2235ce221a9b3aec23a0e537c151380 (patch) | |
| tree | 31edcd6974b2700b2146c4247d8b77be908ee344 /lib/std/builtin.zig | |
| parent | cbfe00b17df276fcf89faa1bb4380ed7f43156a0 (diff) | |
| download | zig-2d9a167cd2235ce221a9b3aec23a0e537c151380.tar.gz zig-2d9a167cd2235ce221a9b3aec23a0e537c151380.zip | |
std.Target: rename `defaultCCallingConvention` and `Cpu.Arch.fromCallconv`
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index d016a4f136..e874c67eea 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -171,7 +171,7 @@ pub const CallingConvention = union(enum(u8)) { /// This is an alias for the default C calling convention for this target. /// Functions marked as `extern` or `export` are given this calling convention by default. - pub const c = builtin.target.defaultCCallingConvention().?; + pub const c = builtin.target.cCallingConvention().?; pub const winapi: CallingConvention = switch (builtin.target.cpu.arch) { .x86_64 => .{ .x86_64_win = .{} }, @@ -482,7 +482,7 @@ pub const CallingConvention = union(enum(u8)) { /// Returns the array of `std.Target.Cpu.Arch` to which this `CallingConvention` applies. /// Asserts that `cc` is not `.auto`, `.@"async"`, `.naked`, or `.@"inline"`. pub fn archs(cc: CallingConvention) []const std.Target.Cpu.Arch { - return std.Target.Cpu.Arch.fromCallconv(cc); + return std.Target.Cpu.Arch.fromCallingConvention(cc); } pub fn eql(a: CallingConvention, b: CallingConvention) bool { |
