[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:11 PDT 2025


================
@@ -895,6 +895,30 @@ bool RISCVAsmBackend::shouldInsertFixupForCodeAlign(MCAssembler &Asm,
   return true;
 }
 
+namespace {
+
+class WindowsRISCVAsmBackend : public RISCVAsmBackend {
----------------
jrtc27 wrote:

COFF rather than Windows?... AFAIK there is no Windows for RISC-V in existence anywhere, but PE/COFF is broader than Windows and does exist.

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


More information about the llvm-commits mailing list