From 3b94a5142c1029a1a50e659c45fdb0627ede7a82 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Sun, 4 Jul 2004 01:30:54 +0000 Subject: [PATCH] Add more operators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14589 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/Statistic.h | 2 ++ include/llvm/ADT/Statistic.h | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.11.0