mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Remove more superfluous .str() and replace std::string concatenation with Twine.
Following r233392, http://llvm.org/viewvc/llvm-project?rev=233392&view=rev. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -298,12 +298,12 @@ std::string Attribute::getAsString(bool InAttrGrp) const {
|
||||
//
|
||||
if (isStringAttribute()) {
|
||||
std::string Result;
|
||||
Result += '\"' + getKindAsString().str() + '"';
|
||||
Result += (Twine('"') + getKindAsString() + Twine('"')).str();
|
||||
|
||||
StringRef Val = pImpl->getValueAsString();
|
||||
if (Val.empty()) return Result;
|
||||
|
||||
Result += "=\"" + Val.str() + '"';
|
||||
Result += ("=\"" + Val + Twine('"')).str();
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user