[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

Reid Spencer reid at x10sys.com
Fri May 6 22:00:08 PDT 2005



Changes in directory llvm/lib/Transforms/IPO:

SimplifyLibCalls.cpp updated: 1.31 -> 1.32
---
Log message:

Don't increment the counter unless the debug flag is set.


---
Diffs of the changes:  (+1 -1)

 SimplifyLibCalls.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.31 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.32
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.31	Wed May  4 13:58:28 2005
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp	Fri May  6 23:59:45 2005
@@ -111,7 +111,7 @@
 
 #ifndef NDEBUG
   /// @brief Called by SimplifyLibCalls to update the occurrences statistic.
-  void succeeded() { ++occurrences; }
+  void succeeded() { DEBUG(++occurrences); }
 #endif
 
 private:






More information about the llvm-commits mailing list