[llvm-commits] [llvm] r81102 - in /llvm/trunk/unittests: ADT/APIntTest.cpp Support/ConstantRangeTest.cpp

Daniel Dunbar daniel at zuster.org
Sat Sep 5 19:31:26 PDT 2009


Author: ddunbar
Date: Sat Sep  5 21:31:26 2009
New Revision: 81102

URL: http://llvm.org/viewvc/llvm-project?rev=81102&view=rev
Log:
Simplify, now that gtest supports raw_ostream directly.

Modified:
    llvm/trunk/unittests/ADT/APIntTest.cpp
    llvm/trunk/unittests/Support/ConstantRangeTest.cpp

Modified: llvm/trunk/unittests/ADT/APIntTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/APIntTest.cpp?rev=81102&r1=81101&r2=81102&view=diff

==============================================================================
--- llvm/trunk/unittests/ADT/APIntTest.cpp (original)
+++ llvm/trunk/unittests/ADT/APIntTest.cpp Sat Sep  5 21:31:26 2009
@@ -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 @@
 
 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;

Modified: llvm/trunk/unittests/Support/ConstantRangeTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ConstantRangeTest.cpp?rev=81102&r1=81101&r2=81102&view=diff

==============================================================================
--- llvm/trunk/unittests/Support/ConstantRangeTest.cpp (original)
+++ llvm/trunk/unittests/Support/ConstantRangeTest.cpp Sat Sep  5 21:31:26 2009
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/ConstantRange.h"
-#include "llvm/Support/raw_os_ostream.h"
 
 #include "gtest/gtest.h"
 





More information about the llvm-commits mailing list