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 {...@@ -1253,7 +1253,7 @@ pub const Cpu = struct {
1253 pub fn toCoffMachine(arch: Arch) std.coff.MachineType {1253 pub fn toCoffMachine(arch: Arch) std.coff.MachineType {
1254 return switch (arch) {1254 return switch (arch) {
1255 .arm => .ARM,1255 .arm => .ARM,
1256 .thumb => .Thumb,1256 .thumb => .THUMB,
1257 .aarch64 => .ARM64,1257 .aarch64 => .ARM64,
1258 .loongarch32 => .LOONGARCH32,1258 .loongarch32 => .LOONGARCH32,
1259 .loongarch64 => .LOONGARCH64,1259 .loongarch64 => .LOONGARCH64,
...@@ -1299,7 +1299,7 @@ pub const Cpu = struct {...@@ -1299,7 +1299,7 @@ pub const Cpu = struct {
1299 .wasm64,1299 .wasm64,
1300 .xcore,1300 .xcore,
1301 .xtensa,1301 .xtensa,
1302 => .Unknown,1302 => .UNKNOWN,
1303 };1303 };
1304 }1304 }
13051305
lib/std/coff.zig+3-3
...@@ -983,7 +983,7 @@ pub const DebugInfoDefinition = struct {...@@ -983,7 +983,7 @@ pub const DebugInfoDefinition = struct {
983};983};
984984
985pub const MachineType = enum(u16) {985pub const MachineType = enum(u16) {
986 Unknown = 0x0,986 UNKNOWN = 0x0,
987 /// Alpha AXP, 32-bit address space987 /// Alpha AXP, 32-bit address space
988 ALPHA = 0x184,988 ALPHA = 0x184,
989 /// Alpha 64, 64-bit address space989 /// Alpha 64, 64-bit address space
...@@ -1053,7 +1053,7 @@ pub const MachineType = enum(u16) {...@@ -1053,7 +1053,7 @@ pub const MachineType = enum(u16) {
1053 /// Hitachi SH51053 /// Hitachi SH5
1054 SH5 = 0x1a8,1054 SH5 = 0x1a8,
1055 /// Thumb1055 /// Thumb
1056 Thumb = 0x1c2,1056 THUMB = 0x1c2,
1057 /// Infineon1057 /// Infineon
1058 TRICORE = 0x520,1058 TRICORE = 0x520,
1059 /// MIPS little-endian WCE v21059 /// MIPS little-endian WCE v2
...@@ -1066,7 +1066,7 @@ pub const MachineType = enum(u16) {...@@ -1066,7 +1066,7 @@ pub const MachineType = enum(u16) {
1066 .ARM => .arm,1066 .ARM => .arm,
1067 .POWERPC => .powerpc,1067 .POWERPC => .powerpc,
1068 .RISCV32 => .riscv32,1068 .RISCV32 => .riscv32,
1069 .Thumb => .thumb,1069 .THUMB => .thumb,
1070 .I386 => .x86,1070 .I386 => .x86,
1071 .ARM64 => .aarch64,1071 .ARM64 => .aarch64,
1072 .RISCV64 => .riscv64,1072 .RISCV64 => .riscv64,