diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-22 14:26:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-22 14:26:59 +0000 |
commit | 31a6db0f2c94852e6dba7ca1e7f8df395cb3ad05 (patch) | |
tree | a4381b3b2ec66493a35097ab2b55e25a5b9e2598 /include/Support/CommandLine.h | |
parent | 33ad24a096aa3b16b7ca64ae86edc4d7c3e913a0 (diff) |
Changes to work better with GCC3.4/LLVM G++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/CommandLine.h')
-rw-r--r-- | include/Support/CommandLine.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/Support/CommandLine.h b/include/Support/CommandLine.h index dcd3b5ba51..789679e399 100644 --- a/include/Support/CommandLine.h +++ b/include/Support/CommandLine.h @@ -733,14 +733,17 @@ class opt : public Option, } public: // setInitialValue - Used by the cl::init modifier... - void setInitialValue(const DataType &V) { setValue(V); } + void setInitialValue(const DataType &V) { this->setValue(V); } ParserClass &getParser() { return Parser; } - operator DataType() const { return getValue(); } + operator DataType() const { return this->getValue(); } template<class T> - DataType &operator=(const T &Val) { setValue(Val); return getValue(); } + DataType &operator=(const T &Val) { + this->setValue(Val); + return this->getValue(); + } // One option... template<class M0t> |