[llvm-mt] Use WithColor for printing errors.
Use the WithColor helper from support to print errors.
llvm-svn: 335416
diff --git a/llvm/tools/llvm-mt/llvm-mt.cpp b/llvm/tools/llvm-mt/llvm-mt.cpp
index 41f7327..1339fd1 100644
--- a/llvm/tools/llvm-mt/llvm-mt.cpp
+++ b/llvm/tools/llvm-mt/llvm-mt.cpp
@@ -24,6 +24,7 @@
#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
+#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/WindowsManifest/WindowsManifestMerger.h"
@@ -65,7 +66,7 @@
} // namespace
LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg) {
- errs() << "llvm-mt error: " << Msg << "\n";
+ WithColor::error(errs(), "llvm-mt") << Msg << '\n';
exit(1);
}