[lld] [lld] Use llvm::less_second (NFC) (PR #141349)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat May 24 08:22:07 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141349
None
>From 83e050e5bcde8534b3a3c4ff8d06f4fc6dbf0fd6 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 23 May 2025 23:35:19 -0700
Subject: [PATCH] [lld] Use llvm::less_second (NFC)
---
lld/MachO/SyntheticSections.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
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