[NFC] PrintHelp cleanup

llvm-svn: 327311
This commit is contained in:
Jan Korous 2018-03-12 18:30:47 +00:00
parent 36ca823f76
commit 41e9a15deb
1 changed files with 1 additions and 3 deletions

View File

@ -540,9 +540,7 @@ void OptTable::PrintHelp(raw_ostream &OS, const char *Name, const char *Title,
using helpmap_ty = std::map<std::string, std::vector<OptionInfo>>; using helpmap_ty = std::map<std::string, std::vector<OptionInfo>>;
helpmap_ty GroupedOptionHelp; helpmap_ty GroupedOptionHelp;
for (unsigned i = 0, e = getNumOptions(); i != e; ++i) { for (unsigned Id = 1, e = getNumOptions() + 1; Id != e; ++Id) {
unsigned Id = i + 1;
// FIXME: Split out option groups. // FIXME: Split out option groups.
if (getOptionKind(Id) == Option::GroupClass) if (getOptionKind(Id) == Option::GroupClass)
continue; continue;