[ELF] Simplify with less_second. NFC

llvm-svn: 369844
This commit is contained in:
Fangrui Song 2019-08-24 08:40:20 +00:00
parent 98bcf690ae
commit 6d5a8c92bf
1 changed files with 1 additions and 4 deletions

View File

@ -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