]> granicus.if.org Git - llvm/commitdiff
Add an include of gtest-printers.h to appease the buildbots.
authorZachary Turner <zturner@google.com>
Wed, 14 Jun 2017 16:49:38 +0000 (16:49 +0000)
committerZachary Turner <zturner@google.com>
Wed, 14 Jun 2017 16:49:38 +0000 (16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305396 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Testing/Support/SupportHelpers.h

index 50749ae7db054b75817a8abf19d4132104527a8a..c4dd414b80dbc28a1e1ace054e1f9c6cf6a29469 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Error.h"
+#include "gtest/gtest-printers.h"
 
 namespace llvm {
 namespace detail {
@@ -34,7 +35,7 @@ inline void PrintTo(const ErrorHolder &Err, std::ostream *Out) {
 template <typename T>
 void PrintTo(const ExpectedHolder<T> &Item, std::ostream *Out) {
   if (Item.Success) {
-    *Out << "succeeded with value \"" << testing::PrintToString(**Item.Value)
+    *Out << "succeeded with value \"" << ::testing::PrintToString(**Item.Value)
          << "\"";
   } else {
     PrintTo(static_cast<const ErrorHolder &>(Item), Out);