diff --git a/tools/llvm-undname/llvm-undname.cpp b/tools/llvm-undname/llvm-undname.cpp index 31d0590af2d..60520c8f7be 100644 --- a/tools/llvm-undname/llvm-undname.cpp +++ b/tools/llvm-undname/llvm-undname.cpp @@ -18,6 +18,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/InitLLVM.h" #include "llvm/Support/Process.h" +#include "llvm/Support/WithColor.h" #include "llvm/Support/raw_ostream.h" #include #include @@ -44,7 +45,7 @@ static void demangle(const std::string &S) { outs() << ResultBuf << "\n"; outs().flush(); } else { - errs() << "Error: Invalid mangled name\n"; + WithColor::error() << "Invalid mangled name\n"; } std::free(ResultBuf); }