summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mt
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-06-23 16:49:07 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-06-23 16:49:07 +0000
commitfb540741124f16f7886d798c92b64e89043cb53f (patch)
tree80c330eb4f9cc9b34580ccbc0f91163fa6e2db3e /llvm/tools/llvm-mt
parentc02bf01f64a977a7e39d379afe449ab769893aa8 (diff)
downloadbcm5719-llvm-fb540741124f16f7886d798c92b64e89043cb53f.tar.gz
bcm5719-llvm-fb540741124f16f7886d798c92b64e89043cb53f.zip
[llvm-mt] Use WithColor for printing errors.
Use the WithColor helper from support to print errors. llvm-svn: 335416
Diffstat (limited to 'llvm/tools/llvm-mt')
-rw-r--r--llvm/tools/llvm-mt/llvm-mt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mt/llvm-mt.cpp b/llvm/tools/llvm-mt/llvm-mt.cpp
index 41f7327e9c2..1339fd1572e 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 @@ public:
} // namespace
LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg) {
- errs() << "llvm-mt error: " << Msg << "\n";
+ WithColor::error(errs(), "llvm-mt") << Msg << '\n';
exit(1);
}
OpenPOWER on IntegriCloud