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

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Jul 3 20:32:01 PDT 2004


Changes in directory llvm/include/Support:

Statistic.h updated: 1.11 -> 1.12

---
Log message:

Add more operators.


---
Diffs of the changes:  (+2 -0)

Index: llvm/include/Support/Statistic.h
diff -u llvm/include/Support/Statistic.h:1.11 llvm/include/Support/Statistic.h:1.12
--- llvm/include/Support/Statistic.h:1.11	Fri Apr 16 11:28:33 2004
+++ llvm/include/Support/Statistic.h	Sat Jul  3 20:30:54 2004
@@ -80,6 +80,8 @@
   DataType operator--(int) { return Value--; }
   const Statistic &operator+=(const DataType &V) { Value += V; return *this; }
   const Statistic &operator-=(const DataType &V) { Value -= V; return *this; }
+  const Statistic &operator*=(const DataType &V) { Value *= V; return *this; }
+  const Statistic &operator/=(const DataType &V) { Value /= V; return *this; }
 };
 
 } // End llvm namespace





More information about the llvm-commits mailing list