Do not hide APInt::dump() inside #ifndef NDEBUG.
authorDevang Patel <dpatel@apple.com>
Mon, 17 Sep 2007 22:24:00 +0000 (22:24 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 17 Sep 2007 22:24:00 +0000 (22:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42068 91177308-0d34-0410-b5e6-96231b3b80d8

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

index c6055dfc27c59251a90d92a656b42f4e5095c6fe..97fe4e9201a8e43498d6e4432340db65abf7e133 100644 (file)
@@ -1160,10 +1160,8 @@ public:
   static void tcSetLeastSignificantBits(integerPart *, unsigned int,
                                        unsigned int bits);
 
-#ifndef NDEBUG
   /// @brief debug method
   void dump() const;
-#endif
 
   /// @}
 };
index 5a518994a010aff8acc75e511dccfc6f008fda15..3744c4ad663a83bf49646933124a23f6e64e5cab 100644 (file)
@@ -3720,9 +3720,7 @@ void SDNode::dump(const SelectionDAG *G) const {
       cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
     else {
       cerr << "<APFloat(";
-#ifndef NDEBUG
       CSDN->getValueAPF().convertToAPInt().dump();
-#endif
       cerr << ")>";
     }
   } else if (const GlobalAddressSDNode *GADN =
index 15de08ed055aa092e534edb33ef242be755cc6e7..4a4474dbe7e98a2936373e068e4197c36d3d38ee 100644 (file)
@@ -21,9 +21,7 @@
 #include <limits>
 #include <cstring>
 #include <cstdlib>
-#ifndef NDEBUG
 #include <iomanip>
-#endif
 
 using namespace llvm;
 
@@ -1999,7 +1997,6 @@ std::string APInt::toString(uint8_t radix, bool wantSigned) const {
   return result;
 }
 
-#ifndef NDEBUG
 void APInt::dump() const
 {
   cerr << "APInt(" << BitWidth << ")=" << std::setbase(16);
@@ -2011,7 +2008,6 @@ void APInt::dump() const
   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.