aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Support/Statistic.h2
-rw-r--r--include/llvm/ADT/Statistic.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/Support/Statistic.h b/include/Support/Statistic.h
index 021bf5f418..79d8f9d66e 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 021bf5f418..79d8f9d66e 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