[lld] 1f3b6d8 - [lld] Use llvm::less_second (NFC) (#141349)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 24 09:37:26 PDT 2025
Author: Kazu Hirata
Date: 2025-05-24T09:37:23-07:00
New Revision: 1f3b6d851dd3d1bed85da4781b1d60335a1f8672
URL: https://github.com/llvm/llvm-project/commit/1f3b6d851dd3d1bed85da4781b1d60335a1f8672
DIFF: https://github.com/llvm/llvm-project/commit/1f3b6d851dd3d1bed85da4781b1d60335a1f8672.diff
LOG: [lld] Use llvm::less_second (NFC) (#141349)
Added:
Modified:
lld/MachO/SyntheticSections.cpp
Removed:
################################################################################
diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp
index dfacaf2ef4e0d..c98264871495b 100644
--- a/lld/MachO/SyntheticSections.cpp
+++ b/lld/MachO/SyntheticSections.cpp
@@ -1248,10 +1248,7 @@ void SymtabSection::emitStabs() {
}
}
- llvm::stable_sort(symbolsNeedingStabs,
- [&](const SortingPair &a, const SortingPair &b) {
- return a.second < b.second;
- });
+ llvm::stable_sort(symbolsNeedingStabs, llvm::less_second());
// Emit STABS symbols so that dsymutil and/or the debugger can map address
// regions in the final binary to the source and object files from which they
More information about the llvm-commits
mailing list