aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-30 20:10:56 +0000
committerDan Gohman <gohman@apple.com>2009-06-30 20:10:56 +0000
commit10f1733d9a5cf39f7010bc8b29c3bb4d63a383fa (patch)
tree2daef69f06554d2a546eef124014d1a95fb65e0a /llvm/lib/Support/APInt.cpp
parent28d6d872447f401815e4fde75dd13741493e8565 (diff)
downloadllvm-10f1733d9a5cf39f7010bc8b29c3bb4d63a383fa.zip
llvm-10f1733d9a5cf39f7010bc8b29c3bb4d63a383fa.tar.gz
llvm-10f1733d9a5cf39f7010bc8b29c3bb4d63a383fa.tar.bz2
Reapply 74494, this time removing the conflicting definition of operator<<
in APIntTest.cpp. llvm-svn: 74550
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 73bf774..30dc352 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -2178,6 +2178,12 @@ void APInt::print(raw_ostream &OS, bool isSigned) const {
OS << S.c_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.