[lld] [lld] Use llvm::less_second (NFC) (PR #141349)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 24 08:22:45 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lld
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/141349.diff
1 Files Affected:
- (modified) lld/MachO/SyntheticSections.cpp (+1-4)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/141349
More information about the llvm-commits
mailing list