1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Revert r326092: [gtest] Add PrintTo overload for StringRef.

It seems to break the following buildbot:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/24729

Will resubmit after investigating and fixing it.

llvm-svn: 326096
This commit is contained in:
Ilya Biryukov 2018-02-26 15:54:59 +00:00
parent 0164936dcf
commit 469668c08f

View File

@ -39,17 +39,4 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_os_ostream.h"
#include <cassert>
namespace llvm {
// Without this overload StringRef will be printed as a generic container.
inline void PrintTo(const llvm::StringRef &Val, std::ostream *S) {
assert(S);
llvm::raw_os_ostream OS(*S);
OS << Val;
}
} // namespace llvm
#endif // GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_