summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-undname/llvm-undname.cpp3
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);
}
OpenPOWER on IntegriCloud