Lines Matching defs:Whence
492 static void warn(Twine Message, StringRef Whence = "", StringRef Hint = "") {
494 if (!Whence.empty())
495 errs() << Whence << ": ";
501 static void warn(Error E, StringRef Whence = "") {
504 warn(IPE.message(), Whence);
509 static void exitWithError(Twine Message, StringRef Whence = "",
512 if (!Whence.empty())
513 errs() << Whence << ": ";
520 static void exitWithError(Error E, StringRef Whence = "") {
529 exitWithError(IPE.message(), Whence, Hint);
534 exitWithError(toString(std::move(E)), Whence);
537 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") {
538 exitWithError(EC.message(), Whence);
542 StringRef Whence = "") {
544 exitWithErrorCode(EC, Whence);
546 warn(EC.message(), Whence);
3287 exitWithError(std::move(E), /*Whence*/ "");