summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-14 23:37:22 +0000
committerChris Lattner <sabre@nondot.org>2004-01-14 23:37:22 +0000
commitd8087822be89944ebe67343bce91c419913d6598 (patch)
treec184e8a1e1cf7d906f7f62587e853086a4f77592
parent6229fbf3287d72b9caae78db43b2f8fd52641409 (diff)
downloadbcm5719-llvm-d8087822be89944ebe67343bce91c419913d6598.tar.gz
bcm5719-llvm-d8087822be89944ebe67343bce91c419913d6598.zip
add support for -- for symmetry
llvm-svn: 10865
-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