diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-22 17:03:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-22 17:03:05 +0000 |
commit | 71fb71628ab3f5280a7f4602f52ba365bca31f29 (patch) | |
tree | e13ab1d6034f8f5c26dfe1a23ab0bc254a47ee2e /support/lib/Support/CommandLine.cpp | |
parent | 7f9412b50d56a3e984ba03463251b37c42c2a111 (diff) | |
download | external_llvm-71fb71628ab3f5280a7f4602f52ba365bca31f29.zip external_llvm-71fb71628ab3f5280a7f4602f52ba365bca31f29.tar.gz external_llvm-71fb71628ab3f5280a7f4602f52ba365bca31f29.tar.bz2 |
Add ability to update existing variables with values read from the command line
to certain classes. This is nice because it means that in header files we can
just declare a value, and still have that value be set based on a command-line
argument. The difference is now that the #include of CommandLine.h does not
need to go into the header file as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support/lib/Support/CommandLine.cpp')
-rw-r--r-- | support/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/lib/Support/CommandLine.cpp b/support/lib/Support/CommandLine.cpp index 194dd33..c3f18bd 100644 --- a/support/lib/Support/CommandLine.cpp +++ b/support/lib/Support/CommandLine.cpp @@ -346,7 +346,7 @@ bool EnumValueBase::handleOccurance(const char *ArgName, const string &Arg) { return error(": unrecognized alternative '" + Arg + "'! Alternatives are: " + Alternatives); } - Value = ValueMap[i].second.first; + setValue(ValueMap[i].second.first); return false; } |