summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/Statistic.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/Support/Statistic.h')
-rw-r--r--llvm/include/Support/Statistic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/Support/Statistic.h b/llvm/include/Support/Statistic.h
index 4e592d5832f..9da645ba4e5 100644
--- a/llvm/include/Support/Statistic.h
+++ b/llvm/include/Support/Statistic.h
@@ -76,6 +76,8 @@ public:
const Statistic &operator=(DataType Val) { Value = Val; return *this; }
const Statistic &operator++() { ++Value; return *this; }
DataType operator++(int) { return Value++; }
+ const Statistic &operator--() { --Value; return *this; }
+ 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; }
};
OpenPOWER on IntegriCloud