Use the IDVal directly as there's no need to convert to std::string.

Pointed out by Chris!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Roman Divacky 2010-10-28 16:57:58 +00:00
parent 50e7a78709
commit f9d1752104

View File

@ -1279,10 +1279,10 @@ bool AsmParser::ParseDirectiveSet(StringRef IDVal) {
StringRef Name;
if (ParseIdentifier(Name))
return TokError("expected identifier after '" + Twine(IDVal.str()) + "'");
return TokError("expected identifier after '" + Twine(IDVal) + "'");
if (getLexer().isNot(AsmToken::Comma))
return TokError("unexpected token in '" + Twine(IDVal.str()) + "'");
return TokError("unexpected token in '" + Twine(IDVal) + "'");
Lex();
return ParseAssignment(Name);