projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ca823
)
[NFC] PrintHelp cleanup
author
Jan Korous
<jkorous@apple.com>
Mon, 12 Mar 2018 18:30:47 +0000
(18:30 +0000)
committer
Jan Korous
<jkorous@apple.com>
Mon, 12 Mar 2018 18:30:47 +0000
(18:30 +0000)
llvm-svn: 327311
llvm/lib/Option/OptTable.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Option/OptTable.cpp
b/llvm/lib/Option/OptTable.cpp
index
5956764
..
658129b
100644
(file)
--- a/
llvm/lib/Option/OptTable.cpp
+++ b/
llvm/lib/Option/OptTable.cpp
@@
-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>>;
helpmap_ty GroupedOptionHelp;
- for (unsigned i = 0, e = getNumOptions(); i != e; ++i) {
- unsigned Id = i + 1;
-
+ for (unsigned Id = 1, e = getNumOptions() + 1; Id != e; ++Id) {
// FIXME: Split out option groups.
if (getOptionKind(Id) == Option::GroupClass)
continue;