Updated tools to match r227345 which changed the getRegisteredOptions method

llvm-svn: 227372
This commit is contained in:
Pete Cooper 2015-01-28 21:34:05 +00:00
parent ffa7dc379f
commit 1d2f63a4ef
2 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -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(),