[llvm] RISCV: Replace most Specifier constants with relocation types (PR #138644)
Francesco Petrogalli via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 15:03:56 PDT 2025
================
@@ -626,7 +626,7 @@ void RISCVAsmPrinter::LowerHWASAN_CHECK_MEMACCESS(const MachineInstr &MI) {
Sym = OutContext.getOrCreateSymbol(SymName);
}
auto Res = MCSymbolRefExpr::create(Sym, OutContext);
- auto Expr = RISCVMCExpr::create(Res, RISCVMCExpr::VK_CALL, OutContext);
----------------
fpetrogalli wrote:
Isn't this change implying that the only object file format we can target under RISCV is ELF? I would expect RISCVAsmPrinter to be format independent.
https://github.com/llvm/llvm-project/pull/138644
More information about the llvm-commits
mailing list