[llvm] [llvm-objdump] Support --mcpu=help/--mattr=help without -d (PR #165661)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 01:11:06 PST 2025
================
@@ -3533,6 +3533,35 @@ commaSeparatedValues(const llvm::opt::InputArgList &InputArgs, int ID) {
return Values;
}
+static void mcpuHelp() {
+ Triple TheTriple;
+
+ if (!TripleName.empty()) {
+ TheTriple.setTriple(TripleName);
+ } else {
+ assert(InputFilenames.size());
+ Expected<OwningBinary<Binary>> OBinary = createBinary(InputFilenames[0]);
+ if (auto E = OBinary.takeError()) {
----------------
jh7370 wrote:
Don't use `auto` here (see the style guide). Just use `Error`. It's 1 character more and improves readability.
https://github.com/llvm/llvm-project/pull/165661
More information about the llvm-commits
mailing list