diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-04-21 21:11:59 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-04-21 21:11:59 +0000 |
| commit | 2cd41eb0581496d79a6f462f3b7d0d5bc6655956 (patch) | |
| tree | 31d787a02f5e663428944e5c3788cba55224d1ac /llvm/tools/llvm-bcanalyzer | |
| parent | 825ead950ec7b68161bf73b987f1e2f2da05198c (diff) | |
| download | bcm5719-llvm-2cd41eb0581496d79a6f462f3b7d0d5bc6655956.tar.gz bcm5719-llvm-2cd41eb0581496d79a6f462f3b7d0d5bc6655956.zip | |
[tools] Use WithColor for printing errors.
Use convenience helpers in WithColor to print errors, warnings and notes
in a few more tools.
llvm-svn: 330524
Diffstat (limited to 'llvm/tools/llvm-bcanalyzer')
| -rw-r--r-- | llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index 08ca6e03a7a..1252ed5df8a 100644 --- a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp @@ -37,6 +37,7 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SHA1.h" +#include "llvm/Support/WithColor.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -444,7 +445,7 @@ static std::map<unsigned, PerBlockIDStats> BlockIDStats; /// ReportError - All bitcode analysis errors go through this function, making this a /// good place to breakpoint if debugging. static bool ReportError(const Twine &Err) { - errs() << Err << "\n"; + WithColor::error() << Err << "\n"; return true; } |

