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 | 5f8448f79c2876466d586f2e1caec89e6f070623 (patch) | |
tree | c847ad82acf2665e54db3aefed36c9d79946d67e /lib/Support/CommandLine.cpp | |
parent | e4ed742588d6063c4cc778a57102f8c37e35d3b5 (diff) |
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
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 9ae4cde1b2..52e4bbded0 100644 --- a/lib/Support/CommandLine.cpp +++ b/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; |