mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-02 09:16:40 +00:00
Add more operators.
llvm-svn: 14589
This commit is contained in:
parent
5d7966a0ea
commit
b60ef8f308
@ -80,6 +80,8 @@ public:
|
|||||||
DataType operator--(int) { return Value--; }
|
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; }
|
||||||
const Statistic &operator-=(const DataType &V) { Value -= V; return *this; }
|
const Statistic &operator-=(const DataType &V) { Value -= V; return *this; }
|
||||||
|
const Statistic &operator*=(const DataType &V) { Value *= V; return *this; }
|
||||||
|
const Statistic &operator/=(const DataType &V) { Value /= V; return *this; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user