diff --git a/llvm/include/llvm/Support/ScopedPrinter.h b/llvm/include/llvm/Support/ScopedPrinter.h --- a/llvm/include/llvm/Support/ScopedPrinter.h +++ b/llvm/include/llvm/Support/ScopedPrinter.h @@ -222,6 +222,11 @@ 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 @@ 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); }