Skip to content

Commit

Permalink
[verify-uselistorder] Hide unrelated options
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jul 22, 2022
1 parent 1a0187c commit d805aab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions llvm/tools/verify-uselistorder/verify-uselistorder.cpp
Expand Up @@ -53,18 +53,20 @@ using namespace llvm;

#define DEBUG_TYPE "uselistorder"

static cl::OptionCategory Cat("verify-uselistorder Options");

static cl::opt<std::string> InputFilename(cl::Positional,
cl::desc("<input bitcode file>"),
cl::init("-"),
cl::value_desc("filename"));

static cl::opt<bool> SaveTemps("save-temps", cl::desc("Save temp files"),
cl::init(false));
cl::cat(Cat));

static cl::opt<unsigned>
NumShuffles("num-shuffles",
cl::desc("Number of times to shuffle and verify use-lists"),
cl::init(1));
cl::init(1), cl::cat(Cat));

namespace {

Expand Down Expand Up @@ -530,6 +532,7 @@ int main(int argc, char **argv) {
// Enable debug stream buffering.
EnableDebugBuffering = true;

cl::HideUnrelatedOptions(Cat);
cl::ParseCommandLineOptions(argc, argv,
"llvm tool to verify use-list order\n");

Expand Down

0 comments on commit d805aab

Please sign in to comment.