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