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 | da30ecdcddc472259debb4635bd01410cc1a0af2 (patch) | |
| tree | 3706f94d6b14bb7ae0e222a81affc261598afb17 /llvm/unittests/ADT/APIntTest.cpp | |
| parent | 904199547b790d831683605a3e0f0fb5a233ff2a (diff) | |
| download | llvm-da30ecdcddc472259debb4635bd01410cc1a0af2.zip llvm-da30ecdcddc472259debb4635bd01410cc1a0af2.tar.gz llvm-da30ecdcddc472259debb4635bd01410cc1a0af2.tar.bz2 | |
Simplify, now that gtest supports raw_ostream directly.
llvm-svn: 81102
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/APIntTest.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp index 415f192..5de7d08 100644 --- a/llvm/unittests/ADT/APIntTest.cpp +++ b/llvm/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; |
