From: Chris Lattner Date: Fri, 22 Aug 2003 14:26:59 +0000 (+0000) Subject: Changes to work better with GCC3.4/LLVM G++ X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=31a6db0f2c94852e6dba7ca1e7f8df395cb3ad05;p=oota-llvm.git 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 --- diff --git a/include/Support/CommandLine.h b/include/Support/CommandLine.h index dcd3b5ba511..789679e3990 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 - DataType &operator=(const T &Val) { setValue(Val); return getValue(); } + DataType &operator=(const T &Val) { + this->setValue(Val); + return this->getValue(); + } // One option... template diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index dcd3b5ba511..789679e3990 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/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 - DataType &operator=(const T &Val) { setValue(Val); return getValue(); } + DataType &operator=(const T &Val) { + this->setValue(Val); + return this->getValue(); + } // One option... template