summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/ConstantRangeTest.cpp
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
commitb797fdc365dc15558da3d75dbfb7ea2f8c219816 (patch)
treeeb2ae6534595b85fb2ad187b6134216040c534dd /llvm/unittests/Support/ConstantRangeTest.cpp
parentb5850f9c80587893cc790a85bd08ad58179b8d49 (diff)
downloadbcm5719-llvm-b797fdc365dc15558da3d75dbfb7ea2f8c219816.tar.gz
bcm5719-llvm-b797fdc365dc15558da3d75dbfb7ea2f8c219816.zip
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. llvm-svn: 81093
Diffstat (limited to 'llvm/unittests/Support/ConstantRangeTest.cpp')
-rw-r--r--llvm/unittests/Support/ConstantRangeTest.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/unittests/Support/ConstantRangeTest.cpp b/llvm/unittests/Support/ConstantRangeTest.cpp
index 937b8805cf0..64c945dedca 100644
--- a/llvm/unittests/Support/ConstantRangeTest.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud