diff options
| author | Ali Chraghi <alichraghi@pm.me> | 2022-10-07 21:24:44 +0330 |
|---|---|---|
| committer | Ali Chraghi <alichraghi@pm.me> | 2022-11-04 00:09:27 +0330 |
| commit | f5f1f8c66625237e4eceb3cd40597a687e9a58ac (patch) | |
| tree | 913632d097ffcdeea739da3a2f9b5b023e0ba81c /src/Sema.zig | |
| parent | 678f3f6e65e8808520973912fb6c4d7dbca189fe (diff) | |
| download | zig-f5f1f8c66625237e4eceb3cd40597a687e9a58ac.tar.gz zig-f5f1f8c66625237e4eceb3cd40597a687e9a58ac.zip | |
all: rename i386 to x86
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index b2a0dfa779..d29b5df173 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -8415,20 +8415,20 @@ fn funcCommon( if (switch (cc_workaround) { .Unspecified, .C, .Naked, .Async, .Inline => null, .Interrupt => switch (arch) { - .i386, .x86_64, .avr, .msp430 => null, - else => @as([]const u8, "i386, x86_64, AVR, and MSP430"), + .x86, .x86_64, .avr, .msp430 => null, + else => @as([]const u8, "x86, x86_64, AVR, and MSP430"), }, .Signal => switch (arch) { .avr => null, else => @as([]const u8, "AVR"), }, .Stdcall, .Fastcall, .Thiscall => switch (arch) { - .i386 => null, - else => @as([]const u8, "i386"), + .x86 => null, + else => @as([]const u8, "x86"), }, .Vectorcall => switch (arch) { - .i386, .aarch64, .aarch64_be, .aarch64_32 => null, - else => @as([]const u8, "i386 and AArch64"), + .x86, .aarch64, .aarch64_be, .aarch64_32 => null, + else => @as([]const u8, "x86 and AArch64"), }, .APCS, .AAPCS, .AAPCSVFP => switch (arch) { .arm, .armeb, .aarch64, .aarch64_be, .aarch64_32, .thumb, .thumbeb => null, @@ -30766,7 +30766,7 @@ pub fn analyzeAddressSpace( const supported = switch (address_space) { .generic => true, - .gs, .fs, .ss => (arch == .i386 or arch == .x86_64) and ctx == .pointer, + .gs, .fs, .ss => (arch == .x86 or arch == .x86_64) and ctx == .pointer, // TODO: check that .shared and .local are left uninitialized .param => is_nv, .global, .shared, .local => is_gpu, |
