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

This commit is contained in:
Alex Rønne Petersen 2024-08-09 21:19:24 +02:00
parent ac9ca7d30c
commit b01c595d4a
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -1253,7 +1253,7 @@ pub const Cpu = struct {
pub fn toCoffMachine(arch: Arch) std.coff.MachineType {
return switch (arch) {
.arm => .ARM,
.thumb => .Thumb,
.thumb => .THUMB,
.aarch64 => .ARM64,
.loongarch32 => .LOONGARCH32,
.loongarch64 => .LOONGARCH64,
@ -1299,7 +1299,7 @@ pub const Cpu = struct {
.wasm64,
.xcore,
.xtensa,
=> .Unknown,
=> .UNKNOWN,
};
}

View File

@ -983,7 +983,7 @@ pub const DebugInfoDefinition = struct {
};
pub const MachineType = enum(u16) {
Unknown = 0x0,
UNKNOWN = 0x0,
/// Alpha AXP, 32-bit address space
ALPHA = 0x184,
/// Alpha 64, 64-bit address space
@ -1053,7 +1053,7 @@ pub const MachineType = enum(u16) {
/// Hitachi SH5
SH5 = 0x1a8,
/// Thumb
Thumb = 0x1c2,
THUMB = 0x1c2,
/// Infineon
TRICORE = 0x520,
/// MIPS little-endian WCE v2
@ -1066,7 +1066,7 @@ pub const MachineType = enum(u16) {
.ARM => .arm,
.POWERPC => .powerpc,
.RISCV32 => .riscv32,
.Thumb => .thumb,
.THUMB => .thumb,
.I386 => .x86,
.ARM64 => .aarch64,
.RISCV64 => .riscv64,