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


================
@@ -59,7 +66,13 @@ static MCRegisterInfo *createRISCVMCRegisterInfo(const Triple &TT) {
 static MCAsmInfo *createRISCVMCAsmInfo(const MCRegisterInfo &MRI,
                                        const Triple &TT,
                                        const MCTargetOptions &Options) {
-  MCAsmInfo *MAI = new RISCVMCAsmInfo(TT);
+  MCAsmInfo *MAI;
+
+  if(TT.isOSWindows()){
+	  MAI = new RISCVCOFFMCAsmInfo();
----------------
jrtc27 wrote:

Confused between Windows and PE/COFF again, not to mention the obvious formatting problems

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


More information about the llvm-commits mailing list