mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
add support for -- for symmetry
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
83bb3d2f4e
commit
d924edb845
@ -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; }
|
||||
};
|
||||
|
@ -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; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user