[llvm] [llvm-lib] Handle MIPS architecture (PR #121007)

Hervé Poussineau via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 25 22:32:20 PST 2024


================
@@ -28,6 +28,7 @@ COFF::MachineTypes llvm::getMachineType(StringRef S) {
       .Case("arm64", COFF::IMAGE_FILE_MACHINE_ARM64)
       .Case("arm64ec", COFF::IMAGE_FILE_MACHINE_ARM64EC)
       .Case("arm64x", COFF::IMAGE_FILE_MACHINE_ARM64X)
+      .Case("mips", COFF::IMAGE_FILE_MACHINE_R4000)
----------------
hpoussin wrote:

No, it must be `mips` to be compatible with Microsoft lib.exe

https://github.com/llvm/llvm-project/pull/121007


More information about the llvm-commits mailing list