[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 15:00:27 PDT 2025


================
@@ -237,7 +241,10 @@ StringRef Triple::getArchTypePrefix(ArchType Kind) {
   case wasm64:      return "wasm";
 
   case riscv32:
-  case riscv64:     return "riscv";
+  case riscv64:
+  case riscv32be:
+  case riscv64be:
+    return "riscv";
----------------
topperc wrote:

Follow the existing formatting?

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


More information about the llvm-commits mailing list