diff options
Diffstat (limited to 'llvm/tools/llvm-pdbutil/DiffPrinter.h')
-rw-r--r-- | llvm/tools/llvm-pdbutil/DiffPrinter.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-pdbutil/DiffPrinter.h b/llvm/tools/llvm-pdbutil/DiffPrinter.h index 475747d8dc1..eeda92b072c 100644 --- a/llvm/tools/llvm-pdbutil/DiffPrinter.h +++ b/llvm/tools/llvm-pdbutil/DiffPrinter.h @@ -43,7 +43,7 @@ struct IdenticalDiffProvider { return (Left == Right) ? DiffResult::IDENTICAL : DiffResult::DIFFERENT; } - template <typename T> std::string format(const T &Item, bool Right) { + template <typename T> std::string format(const T &Item) { return formatv("{0}", Item).str(); } }; @@ -54,7 +54,7 @@ struct EquivalentDiffProvider { return (Left == Right) ? DiffResult::IDENTICAL : DiffResult::EQUIVALENT; } - template <typename T> std::string format(const T &Item, bool Right) { + template <typename T> std::string format(const T &Item) { return formatv("{0}", Item).str(); } }; @@ -71,8 +71,8 @@ public: template <typename Provider = IdenticalDiffProvider, typename T, typename U> void print(StringRef Property, const T &Left, const U &Right, Provider P = Provider()) { - std::string L = P.format(Left, false); - std::string R = P.format(Right, true); + std::string L = P.format(Left); + std::string R = P.format(Right); DiffResult Result = P.compare(Left, Right); printExplicit(Property, Result, L, R); |