Lines Matching defs:msg
27 static StringRef getSeparator(const Twine &msg) {
28 if (StringRef(msg.str()).contains('\n'))
56 void lld::error(const Twine &msg) { errorHandler().error(msg); }
57 void lld::error(const Twine &msg, ErrorTag tag, ArrayRef<StringRef> args) {
58 errorHandler().error(msg, tag, args);
60 void lld::fatal(const Twine &msg) { errorHandler().fatal(msg); }
61 void lld::log(const Twine &msg) { errorHandler().log(msg); }
62 void lld::message(const Twine &msg, llvm::raw_ostream &s) {
63 errorHandler().message(msg, s);
65 void lld::warn(const Twine &msg) { errorHandler().warn(msg); }
170 std::string ErrorHandler::getLocation(const Twine &msg) {
192 std::string str = msg.str();
208 StringRef diagKind, const Twine &msg) {
220 os << msg << '\n';
222 // If msg contains a newline, ensure that the next diagnostic is preceded by
224 sep = getSeparator(msg);
227 void ErrorHandler::log(const Twine &msg) {
231 reportDiagnostic(logName, Colors::RESET, "", msg);
234 void ErrorHandler::message(const Twine &msg, llvm::raw_ostream &s) {
238 s << msg << "\n";
242 void ErrorHandler::warn(const Twine &msg) {
244 error(msg);
252 reportDiagnostic(getLocation(msg), Colors::MAGENTA, "warning", msg);
255 void ErrorHandler::error(const Twine &msg) {
262 std::string str = msg.str();
277 reportDiagnostic(getLocation(msg), Colors::RED, "error", msg);
290 void ErrorHandler::error(const Twine &msg, ErrorTag tag,
293 error(msg);
309 return error(msg);
315 error(msg);
335 void ErrorHandler::fatal(const Twine &msg) {
336 error(msg);