diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-06 02:31:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-06 02:31:26 +0000 |
commit | 46e124668a4ad86df1a554d3209e8597498b25bf (patch) | |
tree | 32d49dbcaf67ca964842d744ea4e2059d1eaa794 | |
parent | 8f78a58e14fa754cde827e46ad03f00c7a6ead01 (diff) | |
download | external_llvm-46e124668a4ad86df1a554d3209e8597498b25bf.zip external_llvm-46e124668a4ad86df1a554d3209e8597498b25bf.tar.gz external_llvm-46e124668a4ad86df1a554d3209e8597498b25bf.tar.bz2 |
Simplify, now that gtest supports raw_ostream directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81102 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/ADT/APIntTest.cpp | 8 | ||||
-rw-r--r-- | unittests/Support/ConstantRangeTest.cpp | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index 415f192..5de7d08 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -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; diff --git a/unittests/Support/ConstantRangeTest.cpp b/unittests/Support/ConstantRangeTest.cpp index 6532b56..6b8d01d 100644 --- a/unittests/Support/ConstantRangeTest.cpp +++ b/unittests/Support/ConstantRangeTest.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/ConstantRange.h" -#include "llvm/Support/raw_os_ostream.h" #include "gtest/gtest.h" |