[ScalarEvolution] Get rid of NDEBUG in header (correctly this time).
authorDavide Italiano <davide@freebsd.org>
Sun, 25 Oct 2015 19:55:24 +0000 (19:55 +0000)
committerDavide Italiano <davide@freebsd.org>
Sun, 25 Oct 2015 19:55:24 +0000 (19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251255 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp

index f85d328e1c8664209a07ecca62ff399ce7bee4dd..3c28093d7052426372462d858fc6977eec337ae8 100644 (file)
@@ -127,6 +127,10 @@ namespace llvm {
     /// Print out the internal representation of this scalar to the specified
     /// stream.  This should really only be used for debugging purposes.
     void print(raw_ostream &OS) const;
+
+    /// This method is used for debugging.
+    ///
+    void dump() const;
   };
 
   // Specialize FoldingSetTrait for SCEV to avoid needing to compute
index 38f57fc1a0d1414ecde6298d5ae910539087d1d0..a4a551c1b3e2c9cad818350b726ca90fb74904a2 100644 (file)
@@ -123,6 +123,12 @@ VerifySCEV("verify-scev",
 // Implementation of the SCEV class.
 //
 
+LLVM_DUMP_METHOD
+void SCEV::dump() const {
+  print(dbgs());
+  dbgs() << '\n';
+}
+
 void SCEV::print(raw_ostream &OS) const {
   switch (static_cast<SCEVTypes>(getSCEVType())) {
   case scConstant: