authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-09 21:19:24+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-15 10:55:46+02:00
logb01c595d4a0c4a643a5a276b3c7624449b73b301
treeb6e259046f74acdf489a8e31ff980c7ec1ecbb12
parentac9ca7d30c03f3111b6bb0a0bacade97d1f6f6df
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.coff: Capitalize MachineType.{Unknown,Thumb} for consistency.


2 files changed, 5 insertions(+), 5 deletions(-)

lib/std/Target.zig+2-2
......@@ -1253,7 +1253,7 @@ pub const Cpu = struct {
12531253 pub fn toCoffMachine(arch: Arch) std.coff.MachineType {
12541254 return switch (arch) {
12551255 .arm => .ARM,
1256 .thumb => .Thumb,
1256 .thumb => .THUMB,
12571257 .aarch64 => .ARM64,
12581258 .loongarch32 => .LOONGARCH32,
12591259 .loongarch64 => .LOONGARCH64,
......@@ -1299,7 +1299,7 @@ pub const Cpu = struct {
12991299 .wasm64,
13001300 .xcore,
13011301 .xtensa,
1302 => .Unknown,
1302 => .UNKNOWN,
13031303 };
13041304 }
13051305
lib/std/coff.zig+3-3
......@@ -983,7 +983,7 @@ pub const DebugInfoDefinition = struct {
983983};
984984
985985pub const MachineType = enum(u16) {
986 Unknown = 0x0,
986 UNKNOWN = 0x0,
987987 /// Alpha AXP, 32-bit address space
988988 ALPHA = 0x184,
989989 /// Alpha 64, 64-bit address space
......@@ -1053,7 +1053,7 @@ pub const MachineType = enum(u16) {
10531053 /// Hitachi SH5
10541054 SH5 = 0x1a8,
10551055 /// Thumb
1056 Thumb = 0x1c2,
1056 THUMB = 0x1c2,
10571057 /// Infineon
10581058 TRICORE = 0x520,
10591059 /// MIPS little-endian WCE v2
......@@ -1066,7 +1066,7 @@ pub const MachineType = enum(u16) {
10661066 .ARM => .arm,
10671067 .POWERPC => .powerpc,
10681068 .RISCV32 => .riscv32,
1069 .Thumb => .thumb,
1069 .THUMB => .thumb,
10701070 .I386 => .x86,
10711071 .ARM64 => .aarch64,
10721072 .RISCV64 => .riscv64,