Simplify, now that gtest supports raw_ostream directly.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 6 Sep 2009 02:31:26 +0000 (02:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 6 Sep 2009 02:31:26 +0000 (02:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81102 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ADT/APIntTest.cpp
unittests/Support/ConstantRangeTest.cpp

index 415f192f985a975c0319b4456e326529691cc069..5de7d08b8993278e2554c63ca8c93fabb6f2231d 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include <ostream>
-#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;
index 6532b56bb90ceecdc146ddfc55c962e7491a343d..6b8d01d553f4918822aa88976e3258f35b5eda7c 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/ConstantRange.h"
-#include "llvm/Support/raw_os_ostream.h"
 
 #include "gtest/gtest.h"