llvm.org GIT mirror llvm / 31a6db0
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 Chris Lattner 17 years ago
2 changed file(s) with 12 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
732732 }
733733 public:
734734 // setInitialValue - Used by the cl::init modifier...
735 void setInitialValue(const DataType &V) { setValue(V); }
735 void setInitialValue(const DataType &V) { this->setValue(V); }
736736
737737 ParserClass &getParser() { return Parser; }
738738
739 operator DataType() const { return getValue(); }
739 operator DataType() const { return this->getValue(); }
740740
741741 template
742 DataType &operator=(const T &Val) { setValue(Val); return getValue(); }
742 DataType &operator=(const T &Val) {
743 this->setValue(Val);
744 return this->getValue();
745 }
743746
744747 // One option...
745748 template
732732 }
733733 public:
734734 // setInitialValue - Used by the cl::init modifier...
735 void setInitialValue(const DataType &V) { setValue(V); }
735 void setInitialValue(const DataType &V) { this->setValue(V); }
736736
737737 ParserClass &getParser() { return Parser; }
738738
739 operator DataType() const { return getValue(); }
739 operator DataType() const { return this->getValue(); }
740740
741741 template
742 DataType &operator=(const T &Val) { setValue(Val); return getValue(); }
742 DataType &operator=(const T &Val) {
743 this->setValue(Val);
744 return this->getValue();
745 }
743746
744747 // One option...
745748 template