diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-11 22:11:47 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-11 22:11:47 +0000 |
commit | bada60aa6b64b78a49e187c6aed78d9265d3df15 (patch) | |
tree | 051239908cae0cbe671c57123b8101c628c58a94 | |
parent | 18945d6c994cb9976a3907508c2da4fad8636a4b (diff) | |
download | bcm5719-llvm-bada60aa6b64b78a49e187c6aed78d9265d3df15.tar.gz bcm5719-llvm-bada60aa6b64b78a49e187c6aed78d9265d3df15.zip |
[llvm-undname] Use WithColor for error reporting
Use helpers from Support/WithError.h to print errors.
llvm-svn: 346622
-rw-r--r-- | llvm/tools/llvm-undname/llvm-undname.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-undname/llvm-undname.cpp b/llvm/tools/llvm-undname/llvm-undname.cpp index 31d0590af2d..60520c8f7be 100644 --- a/llvm/tools/llvm-undname/llvm-undname.cpp +++ b/llvm/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 <cstdio> #include <cstring> @@ -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); } |