diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-24 06:13:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-24 06:13:42 +0000 |
commit | 80bb69310908ff077657456eaeef9e8c7f1de466 (patch) | |
tree | 44466b52cbb5317d774fb00118a36ba93fc92e5f /llvm/lib/Support | |
parent | 7217642438773df9c7ba0df19122402e08561943 (diff) | |
download | bcm5719-llvm-80bb69310908ff077657456eaeef9e8c7f1de466.tar.gz bcm5719-llvm-80bb69310908ff077657456eaeef9e8c7f1de466.zip |
Implement and document prefix options with arbitrary values including an
= sign. This needed to support -DNAME=value options as pass-through in
llvmc.
llvm-svn: 18203
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 9ae4cde1b21..52e4bbded02 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -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; |