Add more operators.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 4 Jul 2004 01:30:54 +0000 (01:30 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 4 Jul 2004 01:30:54 +0000 (01:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14589 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Statistic.h
include/llvm/ADT/Statistic.h

index 021bf5f418122cc3c7f77eb4292638752a2cbf71..79d8f9d66ed745ca58b71e09a2298f0fac3d398b 100644 (file)
@@ -80,6 +80,8 @@ public:
   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
index 021bf5f418122cc3c7f77eb4292638752a2cbf71..79d8f9d66ed745ca58b71e09a2298f0fac3d398b 100644 (file)
@@ -80,6 +80,8 @@ public:
   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