diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-08-13 22:23:05 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-08-13 22:23:05 +0000 |
commit | b06ccefc910a32564cb55aaf6fe265182293bfaa (patch) | |
tree | 296d7d7767c0d5b2fb0779974fd18e4883d2175c /lib/Option/OptTable.cpp | |
parent | 51a0280d296405cb1fdb268e5387867e0db2e46e (diff) | |
download | llvm-b06ccefc910a32564cb55aaf6fe265182293bfaa.tar.gz llvm-b06ccefc910a32564cb55aaf6fe265182293bfaa.tar.bz2 llvm-b06ccefc910a32564cb55aaf6fe265182293bfaa.tar.xz |
Options: explicit handling of --
Clients of the option parsing library should handle it explicitly
using a KIND_REMAINING_ARGS option.
Clang and lld have been updated in r188316 and r188318, respectively.
Also fix -Wsign-compare warning in the option parsing test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Option/OptTable.cpp')
-rw-r--r-- | lib/Option/OptTable.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Option/OptTable.cpp b/lib/Option/OptTable.cpp index 650aec8a67..8f21a4ff24 100644 --- a/lib/Option/OptTable.cpp +++ b/lib/Option/OptTable.cpp @@ -259,22 +259,6 @@ InputArgList *OptTable::ParseArgs(const char *const *ArgBegin, continue; } - // FIXME: Remove once clients are updated to use a KIND_REMAINING_ARGS - // option to handle this explicitly instead. - if (Str == "--") { - // Everything after -- is a filename. - ++Index; - - assert(TheInputOptionID != 0 && "Invalid input option ID."); - while (Index < End) { - Args->append(new Arg(getOption(TheInputOptionID), - Args->getArgString(Index), Index, - Args->getArgString(Index))); - ++Index; - } - break; - } - unsigned Prev = Index; Arg *A = ParseOneArg(*Args, Index, FlagsToInclude, FlagsToExclude); assert(Index > Prev && "Parser failed to consume argument."); |