[llvm-commits] CVS: llvm/include/Support/CommandLine.h

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 22 19:53:22 PDT 2003


Changes in directory llvm/include/Support:

CommandLine.h updated: 1.24 -> 1.25

---
Log message:

Changes to work better with GCC3.4/LLVM G++


---
Diffs of the changes:

Index: llvm/include/Support/CommandLine.h
diff -u llvm/include/Support/CommandLine.h:1.24 llvm/include/Support/CommandLine.h:1.25
--- llvm/include/Support/CommandLine.h:1.24	Tue Aug 19 16:57:00 2003
+++ llvm/include/Support/CommandLine.h	Fri Aug 22 09:26:59 2003
@@ -733,14 +733,17 @@
   }
 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>





More information about the llvm-commits mailing list