summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/Statistic.h
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
commitd924edb845101f89744344aee66bbf9f2e89c3c6 (patch)
tree2913ca8f2448c9830a383b0486fe595f6987cc61 /include/llvm/ADT/Statistic.h
parent83bb3d2f4e4556dc70b97ae9726d1fc42ed6e765 (diff)
downloadllvm-d924edb845101f89744344aee66bbf9f2e89c3c6.tar.gz
llvm-d924edb845101f89744344aee66bbf9f2e89c3c6.tar.bz2
llvm-d924edb845101f89744344aee66bbf9f2e89c3c6.tar.xz
add support for -- for symmetry
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/Statistic.h')
-rw-r--r--include/llvm/ADT/Statistic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h
index 4e592d5832..9da645ba4e 100644
--- a/include/llvm/ADT/Statistic.h
+++ b/include/llvm/ADT/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; }
};