Index: llvm/include/llvm/Support/ScopedPrinter.h =================================================================== --- llvm/include/llvm/Support/ScopedPrinter.h +++ llvm/include/llvm/Support/ScopedPrinter.h @@ -214,6 +214,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'; } @@ -268,11 +273,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); }