Reduce string trashing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2010-05-20 14:14:22 +00:00
parent 15a16def6e
commit c37791e875

View File

@ -170,8 +170,8 @@ class MachObjectWriterImpl {
// Support lexicographic sorting.
bool operator<(const MachSymbolData &RHS) const {
const std::string &Name = SymbolData->getSymbol().getName();
return Name < RHS.SymbolData->getSymbol().getName();
return SymbolData->getSymbol().getName() <
RHS.SymbolData->getSymbol().getName();
}
};