From 0d36d84de5f8182bd9c1628cb6cf4cd47d248c9e Mon Sep 17 00:00:00 2001 From: Markus Lavin Date: Wed, 2 Feb 2022 09:31:29 +0100 Subject: [llvm-reduce] Display all relevant options in -help Previously the options category given to cl::HideUnrelatedOptions was local to llvm-reduce.cpp and as a result only options declared in that file were visible in the -help options listing. This was a bit unfortunate since there were several useful options declared in other files. This patch addresses that. Differential Revision: https://reviews.llvm.org/D118682 --- llvm/tools/llvm-reduce/DeltaManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp') diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp index 4d646a7..4abdf38 100644 --- a/llvm/tools/llvm-reduce/DeltaManager.cpp +++ b/llvm/tools/llvm-reduce/DeltaManager.cpp @@ -37,10 +37,12 @@ using namespace llvm; +extern cl::OptionCategory LLVMReduceOptions; static cl::opt DeltaPasses("delta-passes", cl::desc("Delta passes to run, separated by commas. By " - "default, run all delta passes.")); + "default, run all delta passes."), + cl::cat(LLVMReduceOptions)); #define DELTA_PASSES \ DELTA_PASS("special-globals", reduceSpecialGlobalsDeltaPass) \ -- cgit v1.1