diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-07-21 15:36:31 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-07-22 10:00:31 +0300 |
commit | 34b9bbb74d0bd77b1502bbef41bb9cf26c62e811 (patch) | |
tree | a67a5e6713ee7bfd085d3ffa2bb8825111363c25 /llvm/tools/llvm-reduce/llvm-reduce.cpp | |
parent | 360ab707127d7f1718cf0fe0520b5a38ef207bc1 (diff) | |
download | llvm-34b9bbb74d0bd77b1502bbef41bb9cf26c62e811.zip llvm-34b9bbb74d0bd77b1502bbef41bb9cf26c62e811.tar.gz llvm-34b9bbb74d0bd77b1502bbef41bb9cf26c62e811.tar.bz2 |
[NFC][Reduce] Group llvm-reduce options into a group, uncluttering --help
Diffstat (limited to 'llvm/tools/llvm-reduce/llvm-reduce.cpp')
-rw-r--r-- | llvm/tools/llvm-reduce/llvm-reduce.cpp | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/llvm/tools/llvm-reduce/llvm-reduce.cpp b/llvm/tools/llvm-reduce/llvm-reduce.cpp index 036d0ee..9dd8aa4 100644 --- a/llvm/tools/llvm-reduce/llvm-reduce.cpp +++ b/llvm/tools/llvm-reduce/llvm-reduce.cpp @@ -28,30 +28,39 @@ using namespace llvm; -static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden); -static cl::opt<bool> Version("v", cl::desc("Alias for -version"), cl::Hidden); +static cl::OptionCategory Options("llvm-reduce options"); + +static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden, + cl::cat(Options)); +static cl::opt<bool> Version("v", cl::desc("Alias for -version"), cl::Hidden, + cl::cat(Options)); static cl::opt<std::string> InputFilename(cl::Positional, cl::Required, - cl::desc("<input llvm ll/bc file>")); + cl::desc("<input llvm ll/bc file>"), + cl::cat(Options)); static cl::opt<std::string> TestFilename("test", cl::Required, - cl::desc("Name of the interesting-ness test to be run")); + cl::desc("Name of the interesting-ness test to be run"), + cl::cat(Options)); static cl::list<std::string> TestArguments("test-arg", cl::ZeroOrMore, - cl::desc("Arguments passed onto the interesting-ness test")); + cl::desc("Arguments passed onto the interesting-ness test"), + cl::cat(Options)); static cl::opt<std::string> OutputFilename("output", cl::desc("Specify the output file. default: reduced.ll")); static cl::alias OutputFileAlias("o", cl::desc("Alias for -output"), - cl::aliasopt(OutputFilename)); + cl::aliasopt(OutputFilename), + cl::cat(Options)); static cl::opt<bool> ReplaceInput("in-place", cl::desc("WARNING: This option will replace your input file " - "with the reduced version!")); + "with the reduced version!"), + cl::cat(Options)); // Parses IR into a Module and verifies it static std::unique_ptr<Module> parseInputFile(StringRef Filename, |