[llvm] [RISCV] Omit "@plt" in assembler output "call foo at plt" (PR #72467)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 20:48:28 PST 2023


================
@@ -41,8 +41,6 @@ void RISCVMCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const {
   if (HasVariant)
     OS << '%' << getVariantKindName(getKind()) << '(';
   Expr->print(OS, MAI);
-  if (Kind == VK_RISCV_CALL_PLT)
-    OS << "@plt";
----------------
MaskRay wrote:

I want to circle back to this patch. `call xxx at plt` is a x86 hack (ia32 started with `R_386_PC32`, then added `@plt` for `R_386_PLT32`). Newer architectures don't use this syntax.

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


More information about the llvm-commits mailing list