Allow tools with "consume after" options (like lli) to take more positional
opts than they take directly. Thanks to John C for pointing this problem out to me! llvm-svn: 22717
This commit is contained in:
parent
64068eb7da
commit
d09a9a788b
@ -335,11 +335,8 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
||||
" does not require a value!");
|
||||
}
|
||||
UnboundedFound |= EatsUnboundedNumberOfValues(Opt);
|
||||
|
||||
if (Opt->getNumOccurrencesFlag() == cl::ZeroOrMore
|
||||
|| Opt->getNumOccurrencesFlag() == cl::OneOrMore)
|
||||
HasUnlimitedPositionals = true;
|
||||
}
|
||||
HasUnlimitedPositionals = UnboundedFound || ConsumeAfterOpt;
|
||||
}
|
||||
|
||||
// PositionalVals - A vector of "positional" arguments we accumulate into
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user