mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
[ADT] Remove unused multiply and divide operator overloads on
statistics. Scaling statistics atomically doesn't make any sense anyways, and none were using these. If you find yourself wanting to do this, you should probably keep a local count that you scale and then apply that after scaling to the shared statistic object. llvm-svn: 271503
This commit is contained in:
parent
a8e21e2a83
commit
dcd88d1c3c
@ -100,16 +100,6 @@ public:
|
||||
return init();
|
||||
}
|
||||
|
||||
const Statistic &operator*=(const unsigned &V) {
|
||||
sys::AtomicMul(&Value, V);
|
||||
return init();
|
||||
}
|
||||
|
||||
const Statistic &operator/=(const unsigned &V) {
|
||||
sys::AtomicDiv(&Value, V);
|
||||
return init();
|
||||
}
|
||||
|
||||
#else // Statistics are disabled in release builds.
|
||||
|
||||
const Statistic &operator=(unsigned Val) {
|
||||
@ -140,14 +130,6 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
const Statistic &operator*=(const unsigned &V) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
const Statistic &operator/=(const unsigned &V) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
#endif // !defined(NDEBUG) || defined(LLVM_ENABLE_STATS)
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user