diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-29 17:17:15 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-29 17:17:15 +0000 |
commit | 48e7e85d292abe1c448798c8f9412b35dcebbb04 (patch) | |
tree | a4e8f812682d87dade58dd382d6340b38278a2c7 /llvm/lib/TableGen/Error.cpp | |
parent | 4e55afed7e3eaef1f73793cdbecbd7af7eed0c7d (diff) | |
download | bcm5719-llvm-48e7e85d292abe1c448798c8f9412b35dcebbb04.tar.gz bcm5719-llvm-48e7e85d292abe1c448798c8f9412b35dcebbb04.zip |
tblgen: Twinify PrintFatalError.
No functionality change.
llvm-svn: 205110
Diffstat (limited to 'llvm/lib/TableGen/Error.cpp')
-rw-r--r-- | llvm/lib/TableGen/Error.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/TableGen/Error.cpp b/llvm/lib/TableGen/Error.cpp index 928b1203cd8..8d9ae20dd52 100644 --- a/llvm/lib/TableGen/Error.cpp +++ b/llvm/lib/TableGen/Error.cpp @@ -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); } |