diff --git a/llvm/include/llvm/Support/WithColor.h b/llvm/include/llvm/Support/WithColor.h --- a/llvm/include/llvm/Support/WithColor.h +++ b/llvm/include/llvm/Support/WithColor.h @@ -110,7 +110,12 @@ /// outputting colored text, or before program exit. WithColor &resetColor(); + /// Implement default handling for Error. + /// Print "error: " to stderr. static void defaultErrorHandler(Error Err); + + /// Implement default handling for Warning. + /// Print "warning: " to stderr. static void defaultWarningHandler(Error Warning); };