add support for -- for symmetry

llvm-svn: 10865
This commit is contained in:
Chris Lattner 2004-01-14 23:37:22 +00:00
parent 6229fbf328
commit d8087822be
1 changed files with 2 additions and 0 deletions

View File

@ -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; }
};