diff options
author | Fangrui Song <maskray@google.com> | 2019-08-24 08:40:20 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-08-24 08:40:20 +0000 |
commit | 6d5a8c92bfd4edcd4d43db8b613bc6712e4f6e4c (patch) | |
tree | 4d26e5198b3cc3a3e935832271b65c0f9ef337c6 /lld/ELF/Writer.cpp | |
parent | 98bcf690ae03db85608b2ea22eac7a91c84df4dc (diff) | |
download | bcm5719-llvm-6d5a8c92bfd4edcd4d43db8b613bc6712e4f6e4c.tar.gz bcm5719-llvm-6d5a8c92bfd4edcd4d43db8b613bc6712e4f6e4c.zip |
[ELF] Simplify with less_second. NFC
llvm-svn: 369844
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index b9cd8d92bae..9db4259be49 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1294,10 +1294,7 @@ sortISDBySectionOrder(InputSectionDescription *isd, } orderedSections.push_back({isec, i->second}); } - llvm::sort(orderedSections, [&](std::pair<InputSection *, int> a, - std::pair<InputSection *, int> b) { - return a.second < b.second; - }); + llvm::sort(orderedSections, llvm::less_second()); // Find an insertion point for the ordered section list in the unordered // section list. On targets with limited-range branches, this is the mid-point |