From: Alkis Evlogimenos Date: Sun, 4 Jul 2004 01:30:54 +0000 (+0000) Subject: Add more operators. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b94a5142c1029a1a50e659c45fdb0627ede7a82;p=oota-llvm.git Add more operators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14589 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/Statistic.h b/include/Support/Statistic.h index 021bf5f4181..79d8f9d66ed 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 021bf5f4181..79d8f9d66ed 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