aboutsummaryrefslogtreecommitdiff
path: root/unittests/Support
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-09-05 18:16:17 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-09-05 18:16:17 +0000
commit9c0c3bf1ec2feb861f19867d4091350010b23de6 (patch)
tree3ef93342ed0b85c78f6229093f2902d2cb03de3e /unittests/Support
parent5db3084b6932903e61dac317260fe7b1d7987f2e (diff)
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
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/ConstantRangeTest.cpp7
1 files changed, 0 insertions, 7 deletions
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;