[llvm-commits] [llvm] r42068 - in /llvm/trunk: include/llvm/ADT/APInt.h lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/Support/APInt.cpp

Devang Patel dpatel at apple.com
Mon Sep 17 15:24:01 PDT 2007


Author: dpatel
Date: Mon Sep 17 17:24:00 2007
New Revision: 42068

URL: http://llvm.org/viewvc/llvm-project?rev=42068&view=rev
Log:

Do not hide APInt::dump() inside #ifndef NDEBUG.

Modified:
    llvm/trunk/include/llvm/ADT/APInt.h
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    llvm/trunk/lib/Support/APInt.cpp

Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=42068&r1=42067&r2=42068&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Mon Sep 17 17:24:00 2007
@@ -1160,10 +1160,8 @@
   static void tcSetLeastSignificantBits(integerPart *, unsigned int,
 					unsigned int bits);
 
-#ifndef NDEBUG
   /// @brief debug method
   void dump() const;
-#endif
 
   /// @}
 };

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=42068&r1=42067&r2=42068&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Sep 17 17:24:00 2007
@@ -3720,9 +3720,7 @@
       cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
     else {
       cerr << "<APFloat(";
-#ifndef NDEBUG
       CSDN->getValueAPF().convertToAPInt().dump();
-#endif
       cerr << ")>";
     }
   } else if (const GlobalAddressSDNode *GADN =

Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=42068&r1=42067&r2=42068&view=diff

==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Mon Sep 17 17:24:00 2007
@@ -21,9 +21,7 @@
 #include <limits>
 #include <cstring>
 #include <cstdlib>
-#ifndef NDEBUG
 #include <iomanip>
-#endif
 
 using namespace llvm;
 
@@ -1999,7 +1997,6 @@
   return result;
 }
 
-#ifndef NDEBUG
 void APInt::dump() const
 {
   cerr << "APInt(" << BitWidth << ")=" << std::setbase(16);
@@ -2011,7 +2008,6 @@
   cerr << " U(" << this->toStringUnsigned(10) << ") S("
        << this->toStringSigned(10) << ")" << std::setbase(10);
 }
-#endif
 
 // This implements a variety of operations on a representation of
 // arbitrary precision, two's-complement, bignum integer values.





More information about the llvm-commits mailing list