[llvm] [MC] Unhide the target-abi option. (PR #123135)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 14:52:11 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mc
Author: Craig Topper (topperc)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/123135.diff
1 Files Affected:
- (modified) llvm/lib/MC/MCTargetOptionsCommandFlags.cpp (+1-1)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/123135
More information about the llvm-commits
mailing list