[llvm] [RISCV] RFC: Add PE/COFF file output support (PR #148045)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 15:46:46 PDT 2025


================
@@ -905,6 +929,11 @@ MCAsmBackend *llvm::createRISCVAsmBackend(const Target &T,
                                           const MCRegisterInfo &MRI,
                                           const MCTargetOptions &Options) {
   const Triple &TT = STI.getTargetTriple();
+
+  if (TT.isOSWindows() && TT.isOSBinFormatCOFF()) {
----------------
jrtc27 wrote:

There are no Windows RISC-V systems. Why is this not just isOSBinFormatCOFF like AArch64?

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


More information about the llvm-commits mailing list