From d8087822be89944ebe67343bce91c419913d6598 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 Jan 2004 23:37:22 +0000 Subject: [PATCH] add support for -- for symmetry llvm-svn: 10865 --- llvm/include/Support/Statistic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/Support/Statistic.h b/llvm/include/Support/Statistic.h index 4e592d5832f8..9da645ba4e51 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; } };