[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
							
								
									881334e76b
								
							
						
					
					
						commit
						a30f684a67
					
				| 
						 | 
				
			
			@ -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