diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 23:11:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 23:11:28 +0000 |
commit | a8f744b81bc9a4287453fff228240eb4741c478e (patch) | |
tree | 7435ec781c97edc9bf7a3ef76d57793d15a4d11f | |
parent | 743089b98caeec51c70ff580576cdf75f26b56e4 (diff) | |
download | external_llvm-a8f744b81bc9a4287453fff228240eb4741c478e.zip external_llvm-a8f744b81bc9a4287453fff228240eb4741c478e.tar.gz external_llvm-a8f744b81bc9a4287453fff228240eb4741c478e.tar.bz2 |
remove the dead std::ostream APInt inserter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79875 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APInt.h | 7 | ||||
-rw-r--r-- | lib/Support/APInt.cpp | 10 |
2 files changed, 4 insertions, 13 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 5b69bc2..6c418bd 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -15,7 +15,6 @@ #ifndef LLVM_APINT_H #define LLVM_APINT_H -#include "llvm/Support/DataTypes.h" #include "llvm/Support/MathExtras.h" #include <cassert> #include <climits> @@ -32,8 +31,8 @@ namespace llvm { template<typename T> class SmallVectorImpl; - /* An unsigned host type used as a single part of a multi-part - bignum. */ + // An unsigned host type used as a single part of a multi-part + // bignum. typedef uint64_t integerPart; const unsigned int host_char_bit = 8; @@ -1426,8 +1425,6 @@ inline raw_ostream &operator<<(raw_ostream &OS, const APInt &I) { return OS; } -std::ostream &operator<<(std::ostream &o, const APInt &I); - namespace APIntOps { /// @brief Determine the smaller of two APInts considered to be signed. diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index eca6324..5f744e7 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -2203,17 +2203,11 @@ void APInt::print(raw_ostream &OS, bool isSigned) const { OS << S.str(); } -std::ostream &llvm::operator<<(std::ostream &o, const APInt &I) { - raw_os_ostream OS(o); - OS << I; - return o; -} - // This implements a variety of operations on a representation of // arbitrary precision, two's-complement, bignum integer values. -/* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe - and unrestricting assumption. */ +// Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe +// and unrestricting assumption. #define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1] COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0); |