summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-23 19:27:24 +0000
committerChris Lattner <sabre@nondot.org>2001-07-23 19:27:24 +0000
commit1e78f36127fb0e405d2cf893e2ce3381300a667b (patch)
tree4bd65a77a8fc6e5ec8d07e3f84203f879cb8b8a4 /support
parentb49ff5c5ee8d0c3a5b58eaf7cbcaf23c4f2960ea (diff)
downloadllvm-1e78f36127fb0e405d2cf893e2ce3381300a667b.tar.gz
llvm-1e78f36127fb0e405d2cf893e2ce3381300a667b.tar.bz2
llvm-1e78f36127fb0e405d2cf893e2ce3381300a667b.tar.xz
CommandLine library cleanup. No longer use getValue/setValue, instead, just treat the commandline
args as the objects they represent and the "right thing" will happen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283 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 7c3f29305e..c7590aba19 100644
--- a/support/lib/Support/CommandLine.cpp
+++ b/support/lib/Support/CommandLine.cpp
@@ -189,7 +189,7 @@ bool Int::handleOccurance(const char *ArgName, const string &Arg) {
// String valued command line option implementation
//
bool String::handleOccurance(const char *ArgName, const string &Arg) {
- Value = Arg;
+ *this = Arg;
return false;
}