diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2018-02-26 15:54:59 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2018-02-26 15:54:59 +0000 |
commit | d9d9bf8d13c5e25bc8dd1fa3b23fa085c43c883a (patch) | |
tree | 0a6f489332ed88552c766e0ee3b95b97f60c815e | |
parent | 69d7434745542c9e1008a7d8c78210c772e7d58b (diff) | |
download | bcm5719-llvm-d9d9bf8d13c5e25bc8dd1fa3b23fa085c43c883a.tar.gz bcm5719-llvm-d9d9bf8d13c5e25bc8dd1fa3b23fa085c43c883a.zip |
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
-rw-r--r-- | llvm/utils/unittest/googletest/include/gtest/internal/custom/gtest-printers.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/utils/unittest/googletest/include/gtest/internal/custom/gtest-printers.h b/llvm/utils/unittest/googletest/include/gtest/internal/custom/gtest-printers.h index 80e7d91220c..60c1ea050b6 100644 --- a/llvm/utils/unittest/googletest/include/gtest/internal/custom/gtest-printers.h +++ b/llvm/utils/unittest/googletest/include/gtest/internal/custom/gtest-printers.h @@ -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_ |