[lld] r217121 - Move function. No functionality change.
Rui Ueyama
ruiu at google.com
Wed Sep 3 19:52:26 PDT 2014
Author: ruiu
Date: Wed Sep 3 21:52:26 2014
New Revision: 217121
URL: http://llvm.org/viewvc/llvm-project?rev=217121&view=rev
Log:
Move function. No functionality change.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/EdataPass.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/EdataPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/EdataPass.cpp?rev=217121&r1=217120&r2=217121&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/EdataPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/EdataPass.cpp Wed Sep 3 21:52:26 2014
@@ -28,10 +28,6 @@ using llvm::object::export_directory_tab
namespace lld {
namespace pecoff {
-static bool compare(const TableEntry &a, const TableEntry &b) {
- return a.exportName.compare(b.exportName) < 0;
-}
-
static void assignOrdinals(PECOFFLinkingContext &ctx) {
std::set<PECOFFLinkingContext::ExportDesc> exports;
int maxOrdinal = -1;
@@ -89,7 +85,10 @@ static bool getExportedAtoms(PECOFFLinki
exports.insert(desc);
}
ctx.getDllExports().swap(exports);
- std::sort(ret.begin(), ret.end(), compare);
+ std::sort(ret.begin(), ret.end(),
+ [](const TableEntry &a, const TableEntry &b) {
+ return a.exportName.compare(b.exportName) < 0;
+ });
return true;
}
More information about the llvm-commits
mailing list