Implement and document prefix options with arbitrary values including an

= sign. This needed to support -DNAME=value options as pass-through in
llvmc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-11-24 06:13:42 +00:00
parent e4ed742588
commit 5f8448f79c
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -397,7 +397,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
Handler = LookupOption(ArgName, Value);
// Check to see if this "option" is really a prefixed or grouped argument.
if (Handler == 0 && *Value == 0) {
if (Handler == 0) {
std::string RealName(ArgName);
if (RealName.size() > 1) {
unsigned Length = 0;