[X86][Haswell][SchedModel] Add architecture specific scheduling models.
[oota-llvm.git] / lib / TableGen / Error.cpp
index 928b1203cd8f108ca0b4b180f56bf1f2fdebc7b9..8d9ae20dd52eda1a6dc0b0c24a1f0b870553f0b5 100644 (file)
@@ -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);
 }