[llvm] [MC] Unhide the target-abi option. (PR #123135)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 14:51:41 PST 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/123135

This option is very important for RISC-V as it controls calling convention and a field in the ELF header. It is used in a large number of RISC-V lit tests.

Expose the option to -help.

>From 9113aca389c273c888971b721a9473e263f82793 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Wed, 15 Jan 2025 14:48:15 -0800
Subject: [PATCH] [MC] Unhide the target-abi option.

This option is very important for RISC-V as it controls calling
convention and a field in the ELF header. It is used in a large
number of RISC-V lit tests.

Expose the option to -help.
---
 llvm/lib/MC/MCTargetOptionsCommandFlags.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp b/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
index abaf0f0246183e..2adc29172f9ddf 100644
--- a/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
+++ b/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
@@ -156,7 +156,7 @@ llvm::mc::RegisterMCTargetOptionsFlags::RegisterMCTargetOptionsFlags() {
   MCBINDOPT(X86Sse2Avx);
 
   static cl::opt<std::string> ABIName(
-      "target-abi", cl::Hidden,
+      "target-abi",
       cl::desc("The name of the ABI to be targeted from the backend."),
       cl::init(""));
   MCBINDOPT(ABIName);



More information about the llvm-commits mailing list