diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp index 40351c99d0185c..a0529b03ae8c22 100644 --- a/llvm/unittests/ADT/StringRefTest.cpp +++ b/llvm/unittests/ADT/StringRefTest.cpp @@ -16,21 +16,6 @@ #include "gtest/gtest.h" using namespace llvm; -namespace llvm { - -std::ostream &operator<<(std::ostream &OS, const StringRef &S) { - OS << S.str(); - return OS; -} - -std::ostream &operator<<(std::ostream &OS, - const std::pair &P) { - OS << "(" << P.first << ", " << P.second << ")"; - return OS; -} - -} - // Check that we can't accidentally assign a temporary std::string to a // StringRef. (Unfortunately we can't make use of the same thing with // constructors.)