From 9c0c3bf1ec2feb861f19867d4091350010b23de6 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Sat, 5 Sep 2009 18:16:17 +0000 Subject: Teach googletest to use raw_ostream instead of just std::ostream. This can break when there are implicit conversions from types raw_ostream understands but std::ostream doesn't, but it increases the number of cases that Just Work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81093 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/ConstantRangeTest.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'unittests/Support/ConstantRangeTest.cpp') diff --git a/unittests/Support/ConstantRangeTest.cpp b/unittests/Support/ConstantRangeTest.cpp index 937b8805cf..64c945dedc 100644 --- a/unittests/Support/ConstantRangeTest.cpp +++ b/unittests/Support/ConstantRangeTest.cpp @@ -16,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; -} - class ConstantRangeTest : public ::testing::Test { protected: static ConstantRange Full; -- cgit v1.2.3