[lld] r351612 - [lld] Use range-based llvm::sort

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 18 15:41:34 PST 2019


Author: mgrang
Date: Fri Jan 18 15:41:34 2019
New Revision: 351612

URL: http://llvm.org/viewvc/llvm-project?rev=351612&view=rev
Log:
[lld] Use range-based llvm::sort

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=351612&r1=351611&r2=351612&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Fri Jan 18 15:41:34 2019
@@ -1803,7 +1803,7 @@ template <class ELFT> bool RelrSection<E
   std::vector<uint64_t> Offsets;
   for (const RelativeReloc &Rel : Relocs)
     Offsets.push_back(Rel.getOffset());
-  llvm::sort(Offsets.begin(), Offsets.end());
+  llvm::sort(Offsets);
 
   // For each leading relocation, find following ones that can be folded
   // as a bitmap and fold them.




More information about the llvm-commits mailing list