[lld] bb2e222 - [lld] Use llvm::less_first (NFC) (#136397)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 20:34:24 PDT 2025
Author: Kazu Hirata
Date: 2025-04-18T20:34:20-07:00
New Revision: bb2e222407c199e330976aebfccb0e05bdf03957
URL: https://github.com/llvm/llvm-project/commit/bb2e222407c199e330976aebfccb0e05bdf03957
DIFF: https://github.com/llvm/llvm-project/commit/bb2e222407c199e330976aebfccb0e05bdf03957.diff
LOG: [lld] Use llvm::less_first (NFC) (#136397)
Added:
Modified:
lld/MachO/MapFile.cpp
Removed:
################################################################################
diff --git a/lld/MachO/MapFile.cpp b/lld/MachO/MapFile.cpp
index 8919c8d2f9b9c..f3e221a700b14 100644
--- a/lld/MachO/MapFile.cpp
+++ b/lld/MachO/MapFile.cpp
@@ -116,9 +116,7 @@ static MapInfo gatherMapInfo() {
// cstrings are not stored in sorted order in their OutputSections, so we sort
// them here.
for (auto &liveCStrings : info.liveCStringsForSection)
- parallelSort(liveCStrings.second, [](const auto &p1, const auto &p2) {
- return p1.first < p2.first;
- });
+ parallelSort(liveCStrings.second, llvm::less_first());
return info;
}
More information about the llvm-commits
mailing list