[llvm-commits] [llvm] r79875 - in /llvm/trunk: include/llvm/ADT/APInt.h lib/Support/APInt.cpp
Chris Lattner
sabre at nondot.org
Sun Aug 23 16:11:28 PDT 2009
Author: lattner
Date: Sun Aug 23 18:11:28 2009
New Revision: 79875
URL: http://llvm.org/viewvc/llvm-project?rev=79875&view=rev
Log:
remove the dead std::ostream APInt inserter
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
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=79875&r1=79874&r2=79875&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Sun Aug 23 18:11:28 2009
@@ -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 @@
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 @@
return OS;
}
-std::ostream &operator<<(std::ostream &o, const APInt &I);
-
namespace APIntOps {
/// @brief Determine the smaller of two APInts considered to be signed.
Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=79875&r1=79874&r2=79875&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Sun Aug 23 18:11:28 2009
@@ -2203,17 +2203,11 @@
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);
More information about the llvm-commits
mailing list