[ScalarEvolution] Guard dump() with #if
authorJingyue Wu <jingyue@google.com>
Mon, 27 Oct 2014 21:14:41 +0000 (21:14 +0000)
committerJingyue Wu <jingyue@google.com>
Mon, 27 Oct 2014 21:14:41 +0000 (21:14 +0000)
to be consistent with its definition in ScalarEvolution.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220721 91177308-0d34-0410-b5e6-96231b3b80d8

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