aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-04 23:22:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-04 23:22:02 +0000
commitbbf842bb27c6e964359111b6a72a5f948c56fc41 (patch)
treef8f1ae04e920477afd4b74604c8f933e74250781 /lib/Driver/OptTable.cpp
parent5cc8c639cf62cd154cce4ac036a0f19ae2855056 (diff)
Driver: Implement Option::accept methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r--lib/Driver/OptTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp
index 5de71d7633..3308bc51a9 100644
--- a/lib/Driver/OptTable.cpp
+++ b/lib/Driver/OptTable.cpp
@@ -126,7 +126,7 @@ Arg *OptTable::ParseOneArg(const ArgList &Args, unsigned &Index,
if (Str[0] != '-')
return new PositionalArg(getOption(InputOpt), Index++);
- for (unsigned j = UnknownOpt + 1; j < getNumOptions(); ++j) {
+ for (unsigned j = UnknownOpt + 1; j < LastOption; ++j) {
const char *OptName = getOptionName((options::ID) j);
// Arguments are only accepted by options which prefix them.