mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +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:
@ -1537,7 +1537,7 @@ bool ExportEntry::operator==(const ExportEntry &Other) const {
|
||||
if (Stack.size() != Other.Stack.size())
|
||||
return false;
|
||||
// Not equal if different cumulative strings.
|
||||
if (!CumulativeString.str().equals(Other.CumulativeString.str()))
|
||||
if (!CumulativeString.equals(Other.CumulativeString))
|
||||
return false;
|
||||
// Equal if all nodes in both stacks match.
|
||||
for (unsigned i=0; i < Stack.size(); ++i) {
|
||||
@ -1559,7 +1559,7 @@ uint64_t ExportEntry::readULEB128(const uint8_t *&Ptr) {
|
||||
}
|
||||
|
||||
StringRef ExportEntry::name() const {
|
||||
return CumulativeString.str();
|
||||
return CumulativeString;
|
||||
}
|
||||
|
||||
uint64_t ExportEntry::flags() const {
|
||||
|
Reference in New Issue
Block a user