[llvm-branch-commits] [llvm-branch] r104346 - /llvm/branches/Apple/whitney/lib/MC/MachObjectWriter.cpp
Daniel Dunbar
daniel at zuster.org
Fri May 21 12:06:15 PDT 2010
Author: ddunbar
Date: Fri May 21 14:06:15 2010
New Revision: 104346
URL: http://llvm.org/viewvc/llvm-project?rev=104346&view=rev
Log:
Reduce string trashing.
Modified:
llvm/branches/Apple/whitney/lib/MC/MachObjectWriter.cpp
Modified: llvm/branches/Apple/whitney/lib/MC/MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/MC/MachObjectWriter.cpp?rev=104346&r1=104345&r2=104346&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/MC/MachObjectWriter.cpp (original)
+++ llvm/branches/Apple/whitney/lib/MC/MachObjectWriter.cpp Fri May 21 14:06:15 2010
@@ -170,8 +170,8 @@
// 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();
}
};
More information about the llvm-branch-commits
mailing list