File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1276,8 +1276,8 @@ pub const Cpu = struct {
1276
1276
.spirv = > .Unknown ,
1277
1277
.spirv32 = > .Unknown ,
1278
1278
.spirv64 = > .Unknown ,
1279
- .loongarch32 = > .Unknown ,
1280
- .loongarch64 = > .Unknown ,
1279
+ .loongarch32 = > .LOONGARCH32 ,
1280
+ .loongarch64 = > .LOONGARCH64 ,
1281
1281
};
1282
1282
}
1283
1283
Original file line number Diff line number Diff line change @@ -1002,6 +1002,10 @@ pub const MachineType = enum(u16) {
1002
1002
I386 = 0x14c ,
1003
1003
/// Intel Itanium processor family
1004
1004
IA64 = 0x200 ,
1005
+ /// LoongArch32
1006
+ LOONGARCH32 = 0x6232 ,
1007
+ /// LoongArch64
1008
+ LOONGARCH64 = 0x6264 ,
1005
1009
/// Mitsubishi M32R little endian
1006
1010
M32R = 0x9041 ,
1007
1011
/// MIPS16
@@ -1047,6 +1051,8 @@ pub const MachineType = enum(u16) {
1047
1051
.aarch64 = > .ARM64 ,
1048
1052
.riscv64 = > .RISCV64 ,
1049
1053
.x86_64 = > .X64 ,
1054
+ .loongarch32 = > .LOONGARCH32 ,
1055
+ .loongarch64 = > .LOONGARCH64 ,
1050
1056
// there's cases we don't (yet) handle
1051
1057
else = > unreachable ,
1052
1058
};
@@ -1062,6 +1068,8 @@ pub const MachineType = enum(u16) {
1062
1068
.ARM64 = > .aarch64 ,
1063
1069
.RISCV64 = > .riscv64 ,
1064
1070
.X64 = > .x86_64 ,
1071
+ .LOONGARCH32 = > .loongarch32 ,
1072
+ .LOONGARCH64 = > .loongarch64 ,
1065
1073
// there's cases we don't (yet) handle
1066
1074
else = > null ,
1067
1075
};
You can’t perform that action at this time.
0 commit comments