diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-27 17:42:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-27 17:42:11 +0000 |
commit | c758311025805d901b11695aa04148f2da3f307f (patch) | |
tree | 432f0f802e6154a89baab92a4588b7ee4420d43d /llvm/lib/AsmParser/LLLexer.cpp | |
parent | 23cb3716df6c15a895a3aa690f21db903cd0b9bd (diff) | |
download | bcm5719-llvm-c758311025805d901b11695aa04148f2da3f307f.tar.gz bcm5719-llvm-c758311025805d901b11695aa04148f2da3f307f.zip |
Push twines deeper into SourceMgr's error handling methods.
llvm-svn: 114847
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLLexer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp index 23ffd9d26b1..eeaadf68ea1 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/lib/AsmParser/LLLexer.cpp @@ -15,18 +15,19 @@ #include "llvm/DerivedTypes.h" #include "llvm/Instruction.h" #include "llvm/LLVMContext.h" +#include "llvm/ADT/Twine.h" +#include "llvm/Assembly/Parser.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Assembly/Parser.h" #include <cstdio> #include <cstdlib> #include <cstring> using namespace llvm; -bool LLLexer::Error(LocTy ErrorLoc, const std::string &Msg) const { +bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { ErrorInfo = SM.GetMessage(ErrorLoc, Msg, "error"); return true; } |