diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-04 01:30:54 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-04 01:30:54 +0000 |
commit | 3b94a5142c1029a1a50e659c45fdb0627ede7a82 (patch) | |
tree | 80226db565d242b4a21c39b83907d415bf344580 /include | |
parent | 5114004110d771e2cc838be569207784f2519010 (diff) | |
download | external_llvm-3b94a5142c1029a1a50e659c45fdb0627ede7a82.zip external_llvm-3b94a5142c1029a1a50e659c45fdb0627ede7a82.tar.gz external_llvm-3b94a5142c1029a1a50e659c45fdb0627ede7a82.tar.bz2 |
Add more operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/Statistic.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/Statistic.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/Support/Statistic.h b/include/Support/Statistic.h index 021bf5f..79d8f9d 100644 --- a/include/Support/Statistic.h +++ b/include/Support/Statistic.h @@ -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 diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h index 021bf5f..79d8f9d 100644 --- a/include/llvm/ADT/Statistic.h +++ b/include/llvm/ADT/Statistic.h @@ -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 |