aboutsummaryrefslogtreecommitdiffstats
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
commit2539a0fd5649cc11926e0f8207c871509a064fc0 (patch)
tree3ef93342ed0b85c78f6229093f2902d2cb03de3e /unittests/Support
parent3a5a153ce6ed9029a7a27f45b531a434c6139a40 (diff)
downloadexternal_llvm-2539a0fd5649cc11926e0f8207c871509a064fc0.zip
external_llvm-2539a0fd5649cc11926e0f8207c871509a064fc0.tar.gz
external_llvm-2539a0fd5649cc11926e0f8207c871509a064fc0.tar.bz2
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 937b880..64c945d 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;