[lld] r261914 - Rename so that the function name is consistent between ELF and COFF.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 10:49:11 PST 2016


Author: ruiu
Date: Thu Feb 25 12:49:11 2016
New Revision: 261914

URL: http://llvm.org/viewvc/llvm-project?rev=261914&view=rev
Log:
Rename so that the function name is consistent between ELF and COFF.

Modified:
    lld/trunk/COFF/ICF.cpp

Modified: lld/trunk/COFF/ICF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/ICF.cpp?rev=261914&r1=261913&r2=261914&view=diff
==============================================================================
--- lld/trunk/COFF/ICF.cpp (original)
+++ lld/trunk/COFF/ICF.cpp Thu Feb 25 12:49:11 2016
@@ -70,7 +70,7 @@ private:
   static bool equalsConstant(const SectionChunk *A, const SectionChunk *B);
   static bool equalsVariable(const SectionChunk *A, const SectionChunk *B);
   bool forEachGroup(std::vector<SectionChunk *> &Chunks, Comparator Eq);
-  bool partition(ChunkIterator Begin, ChunkIterator End, Comparator Eq);
+  bool segregate(ChunkIterator Begin, ChunkIterator End, Comparator Eq);
 
   std::atomic<uint64_t> NextID = { 1 };
 };
@@ -148,7 +148,7 @@ bool ICF::equalsVariable(const SectionCh
   return std::equal(A->Relocs.begin(), A->Relocs.end(), B->Relocs.begin(), Eq);
 }
 
-bool ICF::partition(ChunkIterator Begin, ChunkIterator End, Comparator Eq) {
+bool ICF::segregate(ChunkIterator Begin, ChunkIterator End, Comparator Eq) {
   bool R = false;
   for (auto It = Begin;;) {
     SectionChunk *Head = *It;
@@ -171,7 +171,7 @@ bool ICF::forEachGroup(std::vector<Secti
     auto Bound = std::find_if(It + 1, End, [&](SectionChunk *SC) {
       return SC->GroupID != Head->GroupID;
     });
-    if (partition(It, Bound, Eq))
+    if (segregate(It, Bound, Eq))
       R = true;
     It = Bound;
   }




More information about the llvm-commits mailing list