diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-14 23:37:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-14 23:37:22 +0000 |
commit | d8087822be89944ebe67343bce91c419913d6598 (patch) | |
tree | c184e8a1e1cf7d906f7f62587e853086a4f77592 | |
parent | 6229fbf3287d72b9caae78db43b2f8fd52641409 (diff) | |
download | bcm5719-llvm-d8087822be89944ebe67343bce91c419913d6598.tar.gz bcm5719-llvm-d8087822be89944ebe67343bce91c419913d6598.zip |
add support for -- for symmetry
llvm-svn: 10865
-rw-r--r-- | llvm/include/Support/Statistic.h | 2 |
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; } }; |