summaryrefslogtreecommitdiffstats
path: root/lib
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
commit38a253ddf786b83dba14d980d269f7bb5c2252ea (patch)
tree218400e93e9bb1ebd329374a1187f769f67c00f2 /lib
parentc9a59b5960088f48c3be234bcc4c79a1ed915d73 (diff)
downloadexternal_llvm-38a253ddf786b83dba14d980d269f7bb5c2252ea.zip
external_llvm-38a253ddf786b83dba14d980d269f7bb5c2252ea.tar.gz
external_llvm-38a253ddf786b83dba14d980d269f7bb5c2252ea.tar.bz2
Reapply 74494, this time removing the conflicting definition of operator<<
in APIntTest.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/APInt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index 73bf774..30dc352 100644
--- a/lib/Support/APInt.cpp
+++ b/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.