[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 bc31b8e..893402e 100644 (file)
@@ -129,9 +129,11 @@ namespace llvm {
     /// purposes.
     void print(raw_ostream &OS) const;
 
     /// purposes.
     void print(raw_ostream &OS) const;
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
     /// dump - This method is used for debugging.
     ///
     void dump() const;
     /// dump - This method is used for debugging.
     ///
     void dump() const;
+#endif
   };
 
   // Specialize FoldingSetTrait for SCEV to avoid needing to compute
   };
 
   // Specialize FoldingSetTrait for SCEV to avoid needing to compute