mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0045776d33
commit
21e1a79a31
@ -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