summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-22 17:03:05 +0000
committerChris Lattner <sabre@nondot.org>2002-05-22 17:03:05 +0000
commit71fb71628ab3f5280a7f4602f52ba365bca31f29 (patch)
treee13ab1d6034f8f5c26dfe1a23ab0bc254a47ee2e /support
parent7f9412b50d56a3e984ba03463251b37c42c2a111 (diff)
downloadllvm-71fb71628ab3f5280a7f4602f52ba365bca31f29.tar.gz
llvm-71fb71628ab3f5280a7f4602f52ba365bca31f29.tar.bz2
llvm-71fb71628ab3f5280a7f4602f52ba365bca31f29.tar.xz
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')
-rw-r--r--support/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/lib/Support/CommandLine.cpp b/support/lib/Support/CommandLine.cpp
index 194dd33b27..c3f18bd152 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;
}