Lines Matching refs:Whence
54 static void warn(Twine Message, std::string Whence = "", in warn() argument
57 if (!Whence.empty()) in warn()
58 errs() << Whence << ": "; in warn()
64 static void warn(Error E, StringRef Whence = "") { in warn() argument
67 warn(IPE.message(), std::string(Whence), std::string("")); in warn()
72 static void exitWithError(Twine Message, std::string Whence = "", in exitWithError() argument
75 if (!Whence.empty()) in exitWithError()
76 errs() << Whence << ": "; in exitWithError()
83 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
92 exitWithError(IPE.message(), std::string(Whence), std::string(Hint)); in exitWithError()
97 exitWithError(toString(std::move(E)), std::string(Whence)); in exitWithError()
100 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
101 exitWithError(EC.message(), std::string(Whence)); in exitWithErrorCode()
110 StringRef Whence = "") { in warnOrExitGivenError() argument
112 exitWithErrorCode(EC, Whence); in warnOrExitGivenError()
114 warn(EC.message(), std::string(Whence)); in warnOrExitGivenError()