[llvm] [RISCV] Add basic Mach-O triple support. (PR #141682)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 25 09:02:44 PDT 2025
================
@@ -275,6 +275,13 @@ static std::string computeAMDDataLayout(const Triple &TT) {
}
static std::string computeRISCVDataLayout(const Triple &TT, StringRef ABIName) {
+ if (TT.isOSBinFormatMachO()) {
+ assert(TT.isLittleEndian() && "Invalid endianness");
+ assert(TT.isArch32Bit() && "Invalid triple.");
----------------
JDevlieghere wrote:
Nit: either have a period for both or neither.
```suggestion
assert(TT.isLittleEndian() && "Invalid endianness");
assert(TT.isArch32Bit() && "Invalid triple");
```
https://github.com/llvm/llvm-project/pull/141682
More information about the llvm-commits
mailing list