add support for -- for symmetry
[oota-llvm.git] / include / Support / Statistic.h
index 4e592d5832f8cffb424a0186634362847dd31a6f..9da645ba4e519958ebcc8962f049ab6a81f15d44 100644 (file)
@@ -76,6 +76,8 @@ public:
   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; }
 };