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
This commit is contained in:
Dan Gohman
2009-06-30 20:10:56 +00:00
parent c9a59b5960
commit 38a253ddf7
3 changed files with 8 additions and 13 deletions

View File

@ -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.