[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:
Chandler Carruth 2016-06-02 08:37:14 +00:00
parent 881334e76b
commit a30f684a67
1 changed files with 0 additions and 18 deletions

View File

@ -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: