1 //===- ErrorReporting.h - dsymutil error reporting -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_DSYMUTIL_ERRORREPORTING_H
11 #define LLVM_TOOLS_DSYMUTIL_ERRORREPORTING_H
12 #include "llvm/Support/WithColor.h"
13 #include "llvm/Support/raw_ostream.h"
18 inline raw_ostream &error_ostream() {
19 return WithColor(errs(), HighlightColor::Error).get() << "error: ";
22 inline raw_ostream &warn_ostream() {
23 return WithColor(errs(), HighlightColor::Warning).get() << "warning: ";
26 inline raw_ostream ¬e_ostream() {
27 return WithColor(errs(), HighlightColor::Note).get() << "note: ";
30 } // namespace dsymutil
31 } // end namespace llvm
33 #endif // LLVM_TOOLS_DSYMUTIL_ERRORREPORTING_H