1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

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

Pointed out by Chris!

llvm-svn: 117557
This commit is contained in:
Roman Divacky 2010-10-28 16:57:58 +00:00
parent 8555f153e9
commit 2aedee6ff2

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);