Skip to content

Commit bada60a

Browse files
committed
[llvm-undname] Use WithColor for error reporting
Use helpers from Support/WithError.h to print errors. llvm-svn: 346622
1 parent 18945d6 commit bada60a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/tools/llvm-undname/llvm-undname.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "llvm/Support/CommandLine.h"
1919
#include "llvm/Support/InitLLVM.h"
2020
#include "llvm/Support/Process.h"
21+
#include "llvm/Support/WithColor.h"
2122
#include "llvm/Support/raw_ostream.h"
2223
#include <cstdio>
2324
#include <cstring>
@@ -44,7 +45,7 @@ static void demangle(const std::string &S) {
4445
outs() << ResultBuf << "\n";
4546
outs().flush();
4647
} else {
47-
errs() << "Error: Invalid mangled name\n";
48+
WithColor::error() << "Invalid mangled name\n";
4849
}
4950
std::free(ResultBuf);
5051
}

0 commit comments

Comments
 (0)