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 | 76ff1d915c9c42823a3f2b08ff936cf7a48933c5 (patch) | |
tree | bb30063999031f56df24b5f2a05679495a89c69b /llvm/lib/Option/OptTable.cpp | |
parent | e4fa0dee4822cc7ea9d057c0746edbb3beb72c0a (diff) | |
download | llvm-76ff1d915c9c42823a3f2b08ff936cf7a48933c5.zip llvm-76ff1d915c9c42823a3f2b08ff936cf7a48933c5.tar.gz llvm-76ff1d915c9c42823a3f2b08ff936cf7a48933c5.tar.bz2 |
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.
llvm-svn: 188323
Diffstat (limited to 'llvm/lib/Option/OptTable.cpp')
-rw-r--r-- | llvm/lib/Option/OptTable.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Option/OptTable.cpp b/llvm/lib/Option/OptTable.cpp index 650aec8..8f21a4f 100644 --- a/llvm/lib/Option/OptTable.cpp +++ b/llvm/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."); |