aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-17 10:39:45 -0800
committerKazu Hirata <kazu@google.com>2021-01-17 10:39:45 -0800
commit352fcfc69788093b50971a9f5540a61fa0887ce1 (patch)
tree9775f7738de13ae8fdb779e74c51d8f2734cd861 /llvm/lib/Object/COFFObjectFile.cpp
parent7e9e6ac526ebd90fe8ec0b8d2bb6edd3516ab908 (diff)
downloadllvm-352fcfc69788093b50971a9f5540a61fa0887ce1.zip
llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.gz
llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.bz2
[llvm] Use llvm::sort (NFC)
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 2e44a38..6e9a8eb 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -1791,10 +1791,9 @@ Error ResourceSectionRef::load(const COFFObjectFile *O, const SectionRef &S) {
Relocs.reserve(OrigRelocs.size());
for (const coff_relocation &R : OrigRelocs)
Relocs.push_back(&R);
- std::sort(Relocs.begin(), Relocs.end(),
- [](const coff_relocation *A, const coff_relocation *B) {
- return A->VirtualAddress < B->VirtualAddress;
- });
+ llvm::sort(Relocs, [](const coff_relocation *A, const coff_relocation *B) {
+ return A->VirtualAddress < B->VirtualAddress;
+ });
return Error::success();
}