mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm-undname] Use WithColor for error reporting
Use helpers from Support/WithError.h to print errors. llvm-svn: 346622
This commit is contained in:
parent
4db9c04eb9
commit
418562ffa9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user