summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-09-27 17:42:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-09-27 17:42:11 +0000
commitc758311025805d901b11695aa04148f2da3f307f (patch)
tree432f0f802e6154a89baab92a4588b7ee4420d43d /llvm/lib/AsmParser/LLParser.h
parent23cb3716df6c15a895a3aa690f21db903cd0b9bd (diff)
downloadbcm5719-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/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index 404cec3ed7c..1baa7d8b990 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -142,10 +142,10 @@ namespace llvm {
private:
- bool Error(LocTy L, const std::string &Msg) const {
+ bool Error(LocTy L, const Twine &Msg) const {
return Lex.Error(L, Msg);
}
- bool TokError(const std::string &Msg) const {
+ bool TokError(const Twine &Msg) const {
return Error(Lex.getLoc(), Msg);
}
OpenPOWER on IntegriCloud