[ScalarEvolution] Guard dump() with #if
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolution.h
index bc31b8e4c3f3a96dff61856b450e05e46d0e4003..893402ea11aa5dba94187b9ac65ef1af6fafc8d0 100644 (file)
@@ -129,9 +129,11 @@ namespace llvm {
     /// purposes.
     void print(raw_ostream &OS) const;
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
     /// dump - This method is used for debugging.
     ///
     void dump() const;
+#endif
   };
 
   // Specialize FoldingSetTrait for SCEV to avoid needing to compute