[llvm] [llvm-objdump] Eliminate the dependency of `--mcpu=help` and `--mattr=help` on `-d` (PR #165661)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 01:09:57 PST 2025
================
@@ -3533,6 +3533,35 @@ commaSeparatedValues(const llvm::opt::InputArgList &InputArgs, int ID) {
return Values;
}
+static void mcpuHelp() {
+ std::string Error;
+ Triple TheTriple;
+
+ if (!TripleName.empty()) {
+ TheTriple.setTriple(TripleName);
+ } else {
+ // If the target triple is derived from the files, we display help message
+ // when disassembling them.
+ if (Disassemble)
+ return;
+ if (InputFilenames.size() != 1)
+ reportWarning("When multiple files are specified, only the first file is "
----------------
jh7370 wrote:
I thought that was obviously what I meant (though obviously you should make sure it's non-empty first). The existing behaviour is to look at the first object for the triple to print --mcpu=help when disassembling, so this shouldn't change for the case when we're not disassembling.
https://github.com/llvm/llvm-project/pull/165661
More information about the llvm-commits
mailing list