From c758311025805d901b11695aa04148f2da3f307f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 27 Sep 2010 17:42:11 +0000 Subject: Push twines deeper into SourceMgr's error handling methods. llvm-svn: 114847 --- llvm/utils/TableGen/TableGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/utils/TableGen/TableGen.cpp') diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp index 5e3e282..d47897d 100644 --- a/llvm/utils/TableGen/TableGen.cpp +++ b/llvm/utils/TableGen/TableGen.cpp @@ -174,7 +174,7 @@ RecordKeeper llvm::Records; static SourceMgr SrcMgr; -void llvm::PrintError(SMLoc ErrorLoc, const std::string &Msg) { +void llvm::PrintError(SMLoc ErrorLoc, const Twine &Msg) { SrcMgr.PrintMessage(ErrorLoc, Msg, "error"); } -- cgit v1.1