From 71fb71628ab3f5280a7f4602f52ba365bca31f29 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 22 May 2002 17:03:05 +0000 Subject: 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 --- lib/Support/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support/CommandLine.cpp') diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 194dd33b27..c3f18bd152 100644 --- a/lib/Support/CommandLine.cpp +++ b/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; } -- cgit v1.2.3-18-g5258