Mercurial > hg > CbC > CbC_llvm
diff lib/TableGen/Error.cpp @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | 95c75e76d11b |
children | afa8332a0e37 |
line wrap: on
line diff
--- a/lib/TableGen/Error.cpp Thu Dec 12 15:22:36 2013 +0900 +++ b/lib/TableGen/Error.cpp Mon Sep 08 22:06:00 2014 +0900 @@ -62,12 +62,12 @@ 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); }