mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24:34 +00:00
Do not hide APInt::dump() inside #ifndef NDEBUG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1160,10 +1160,8 @@ public:
|
|||||||
static void tcSetLeastSignificantBits(integerPart *, unsigned int,
|
static void tcSetLeastSignificantBits(integerPart *, unsigned int,
|
||||||
unsigned int bits);
|
unsigned int bits);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
/// @brief debug method
|
/// @brief debug method
|
||||||
void dump() const;
|
void dump() const;
|
||||||
#endif
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
};
|
};
|
||||||
|
@@ -3720,9 +3720,7 @@ void SDNode::dump(const SelectionDAG *G) const {
|
|||||||
cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
|
cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
|
||||||
else {
|
else {
|
||||||
cerr << "<APFloat(";
|
cerr << "<APFloat(";
|
||||||
#ifndef NDEBUG
|
|
||||||
CSDN->getValueAPF().convertToAPInt().dump();
|
CSDN->getValueAPF().convertToAPInt().dump();
|
||||||
#endif
|
|
||||||
cerr << ")>";
|
cerr << ")>";
|
||||||
}
|
}
|
||||||
} else if (const GlobalAddressSDNode *GADN =
|
} else if (const GlobalAddressSDNode *GADN =
|
||||||
|
@@ -21,9 +21,7 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#ifndef NDEBUG
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@@ -1999,7 +1997,6 @@ std::string APInt::toString(uint8_t radix, bool wantSigned) const {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
void APInt::dump() const
|
void APInt::dump() const
|
||||||
{
|
{
|
||||||
cerr << "APInt(" << BitWidth << ")=" << std::setbase(16);
|
cerr << "APInt(" << BitWidth << ")=" << std::setbase(16);
|
||||||
@@ -2011,7 +2008,6 @@ void APInt::dump() const
|
|||||||
cerr << " U(" << this->toStringUnsigned(10) << ") S("
|
cerr << " U(" << this->toStringUnsigned(10) << ") S("
|
||||||
<< this->toStringSigned(10) << ")" << std::setbase(10);
|
<< this->toStringSigned(10) << ")" << std::setbase(10);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// This implements a variety of operations on a representation of
|
// This implements a variety of operations on a representation of
|
||||||
// arbitrary precision, two's-complement, bignum integer values.
|
// arbitrary precision, two's-complement, bignum integer values.
|
||||||
|
Reference in New Issue
Block a user