forked from OSchip/llvm-project
Updated tools to match r227345 which changed the getRegisteredOptions method
llvm-svn: 227372
This commit is contained in:
parent
ffa7dc379f
commit
1d2f63a4ef
|
@ -197,8 +197,7 @@ bool applyFormatting(const std::vector<tooling::Replacement> &Replacements,
|
|||
|
||||
int main(int argc, char **argv) {
|
||||
// Only include our options in -help output.
|
||||
StringMap<cl::Option*> OptMap;
|
||||
cl::getRegisteredOptions(OptMap);
|
||||
StringMap<cl::Option*> &OptMap = cl::getRegisteredOptions();
|
||||
const char **EndOpts = std::end(OptionsToShow);
|
||||
for (const auto &Opt : OptMap) {
|
||||
if (std::find(OptionsToShow, EndOpts, Opt.getKey()) == EndOpts)
|
||||
|
|
|
@ -307,8 +307,7 @@ int main(int argc, const char **argv) {
|
|||
|
||||
// Hide all options we don't define ourselves. Move pre-defined 'help',
|
||||
// 'help-list', and 'version' to our general category.
|
||||
llvm::StringMap<cl::Option*> Options;
|
||||
cl::getRegisteredOptions(Options);
|
||||
llvm::StringMap<cl::Option*> &Options = cl::getRegisteredOptions();
|
||||
const cl::OptionCategory **CategoryEnd =
|
||||
VisibleCategories + llvm::array_lengthof(VisibleCategories);
|
||||
for (llvm::StringMap<cl::Option *>::iterator I = Options.begin(),
|
||||
|
|
Loading…
Reference in New Issue