From 80a0ee6f64b9274d51cec80a141f10c627b895f0 Mon Sep 17 00:00:00 2001 From: Jayson Yan Date: Fri, 10 Dec 2021 18:29:09 +0000 Subject: [PATCH] [NFC] Move printNumber method Move printNumber(StringRef Label, StringRef Str, T Value) to be with the rest of the printNumber(...) methods. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D114741 --- llvm/include/llvm/Support/ScopedPrinter.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/Support/ScopedPrinter.h b/llvm/include/llvm/Support/ScopedPrinter.h index 77d19c6..7c4eb20 100644 --- a/llvm/include/llvm/Support/ScopedPrinter.h +++ b/llvm/include/llvm/Support/ScopedPrinter.h @@ -222,6 +222,11 @@ public: startLine() << Label << ": " << Value << "\n"; } + template + void printNumber(StringRef Label, StringRef Str, T Value) { + printNumberImpl(Label, Str, to_string(Value)); + } + virtual void printBoolean(StringRef Label, bool Value) { startLine() << Label << ": " << (Value ? "Yes" : "No") << '\n'; } @@ -327,11 +332,6 @@ public: startLine() << Label << ": " << Value << "\n"; } - template - void printNumber(StringRef Label, StringRef Str, T Value) { - printNumberImpl(Label, Str, to_string(Value)); - } - void printBinary(StringRef Label, StringRef Str, ArrayRef Value) { printBinaryImpl(Label, Str, Value, false); } -- 2.7.4