summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-04-15 08:44:15 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-04-15 08:44:15 +0000
commit6be1f01935f23d92c967024ee718a7f48748283c (patch)
tree8c29776b29cdfc0fd6f5da905af783c0e9ca69b6 /llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
parent7c16977a8f8dd927ae246be386bea9b17bbcc15d (diff)
downloadbcm5719-llvm-6be1f01935f23d92c967024ee718a7f48748283c.tar.gz
bcm5719-llvm-6be1f01935f23d92c967024ee718a7f48748283c.zip
[Support] Extend WithColor helpers
Although printing warnings and errors to stderr is by far the most common case, this patch makes it possible to specify any stream. llvm-svn: 330094
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
index 73aa5017888..ba7aef37eac 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -1196,14 +1196,8 @@ bool DWARFVerifier::handleAccelTables() {
return NumErrors == 0;
}
-raw_ostream &DWARFVerifier::error() const {
- return WithColor(OS, HighlightColor::Error).get() << "error: ";
-}
+raw_ostream &DWARFVerifier::error() const { return WithColor::error(OS); }
-raw_ostream &DWARFVerifier::warn() const {
- return WithColor(OS, HighlightColor::Warning).get() << "warning: ";
-}
+raw_ostream &DWARFVerifier::warn() const { return WithColor::warning(OS); }
-raw_ostream &DWARFVerifier::note() const {
- return WithColor(OS, HighlightColor::Note).get() << "note: ";
-}
+raw_ostream &DWARFVerifier::note() const { return WithColor::note(OS); }
OpenPOWER on IntegriCloud