[llvm] 98dbce3 - [MC] Unhide the target-abi option. (#123135)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 19:20:58 PST 2025
Author: Craig Topper
Date: 2025-01-15T19:20:54-08:00
New Revision: 98dbce3cac38ccac3f4b1cad0865aaa7ca0aee5d
URL: https://github.com/llvm/llvm-project/commit/98dbce3cac38ccac3f4b1cad0865aaa7ca0aee5d
DIFF: https://github.com/llvm/llvm-project/commit/98dbce3cac38ccac3f4b1cad0865aaa7ca0aee5d.diff
LOG: [MC] Unhide the target-abi option. (#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.
Fixes one issue raised in #123077
Added:
Modified:
llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
Removed:
################################################################################
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