From 46e124668a4ad86df1a554d3209e8597498b25bf Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 6 Sep 2009 02:31:26 +0000 Subject: Simplify, now that gtest supports raw_ostream directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81102 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ADT/APIntTest.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'unittests/ADT') diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index 415f192f98..5de7d08b89 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include -#include "llvm/Support/raw_os_ostream.h" #include "gtest/gtest.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/SmallString.h" @@ -17,13 +16,6 @@ using namespace llvm; namespace { -// Support APInt output to an std::ostream. -inline std::ostream &operator<<(std::ostream &OS, const APInt &Value) { - raw_os_ostream RawOS(OS); - RawOS << Value; - 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