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

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 14 17:38:17 PST 2004


Changes in directory llvm/include/Support:

Statistic.h updated: 1.8 -> 1.9

---
Log message:

add support for -- for symmetry


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

Index: llvm/include/Support/Statistic.h
diff -u llvm/include/Support/Statistic.h:1.8 llvm/include/Support/Statistic.h:1.9
--- llvm/include/Support/Statistic.h:1.8	Tue Nov 11 16:41:29 2003
+++ llvm/include/Support/Statistic.h	Wed Jan 14 17:37:22 2004
@@ -76,6 +76,8 @@
   const Statistic &operator=(DataType Val) { Value = Val; return *this; }
   const Statistic &operator++() { ++Value; return *this; }
   DataType operator++(int) { return Value++; }
+  const Statistic &operator--() { --Value; return *this; }
+  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; }
 };





More information about the llvm-commits mailing list