mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-21 00:24:42 +00:00
tblgen: Twinify PrintFatalError.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,12 +62,12 @@ void PrintError(const Twine &Msg) {
|
||||
errs() << "error:" << Msg << "\n";
|
||||
}
|
||||
|
||||
void PrintFatalError(const std::string &Msg) {
|
||||
PrintError(Twine(Msg));
|
||||
void PrintFatalError(const Twine &Msg) {
|
||||
PrintError(Msg);
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const std::string &Msg) {
|
||||
void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) {
|
||||
PrintError(ErrorLoc, Msg);
|
||||
std::exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user