summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-03-30 15:42:36 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-03-30 15:42:36 +0000
commit075759aaddb1daf9aa801fc75a0909c510081f6d (patch)
tree88e604bd3bfca09b26acf2438fff4a82a41b4de6 /llvm/lib/Object/MachOObjectFile.cpp
parentbbe1756a8c55bb0195bcbe257cfff4b73d94c8ac (diff)
downloadbcm5719-llvm-075759aaddb1daf9aa801fc75a0909c510081f6d.tar.gz
bcm5719-llvm-075759aaddb1daf9aa801fc75a0909c510081f6d.zip
Remove more superfluous .str() and replace std::string concatenation with Twine.
Following r233392, http://llvm.org/viewvc/llvm-project?rev=233392&view=rev. llvm-svn: 233555
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 4a1c311dd09..7129aa324ab 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -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 {
OpenPOWER on IntegriCloud