From 38a253ddf786b83dba14d980d269f7bb5c2252ea Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 30 Jun 2009 20:10:56 +0000 Subject: 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 --- unittests/ADT/APIntTest.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'unittests/ADT/APIntTest.cpp') diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index 8ff7d1d809..648faf13ad 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -17,19 +17,6 @@ using namespace llvm; namespace { -// Make the Google Test failure output equivalent to APInt::dump() -std::ostream& operator<<(std::ostream &OS, const llvm::APInt& I) { - llvm::raw_os_ostream raw_os(OS); - - SmallString<40> S, U; - I.toStringUnsigned(U); - I.toStringSigned(S); - raw_os << "APInt(" << I.getBitWidth()<< "b, " - << U.c_str() << "u " << S.c_str() << "s)"; - raw_os.flush(); - return OS; -} - // Test that APInt shift left works when bitwidth > 64 and shiftamt == 0 TEST(APIntTest, ShiftLeftByZero) { APInt One = APInt::getNullValue(65) + 1; -- cgit v1.2.3