Remove unneeded cl::ZeroOrMore. NFC

This commit is contained in:
Fangrui Song 2022-06-30 19:11:27 -07:00
parent 62a4e6ab15
commit 27abff670b
2 changed files with 2 additions and 3 deletions

View File

@ -128,7 +128,6 @@ static cl::opt<int> CallPenalty(
static cl::opt<size_t>
StackSizeThreshold("inline-max-stacksize", cl::Hidden,
cl::init(std::numeric_limits<size_t>::max()),
cl::ZeroOrMore,
cl::desc("Do not inline functions with a stack size "
"that exceeds the specified limit"));

View File

@ -816,7 +816,7 @@ def MyPass : Pass<"my-pass", "ModuleOp"> {
Option<"option", "example-option", "bool", /*default=*/"true",
"An example option">,
ListOption<"listOption", "example-list", "int64_t",
"An example list option", "llvm::cl::ZeroOrMore">
"An example list option">
];
// Specify any statistics.
@ -952,7 +952,7 @@ The `ListOption` class takes the following fields:
def MyPass : Pass<"my-pass"> {
let options = [
ListOption<"listOption", "example-list", "int64_t",
"An example list option", "llvm::cl::ZeroOrMore">
"An example list option">
];
}
```