Skip to content

Commit

Permalink
Rename so that the function name is consistent between ELF and COFF.
Browse files Browse the repository at this point in the history
llvm-svn: 261914
  • Loading branch information
rui314 committed Feb 25, 2016
1 parent 6a9ef85 commit 29d8eef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lld/COFF/ICF.cpp
Expand Up @@ -70,7 +70,7 @@ class ICF {
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 };
};
Expand Down Expand Up @@ -148,7 +148,7 @@ bool ICF::equalsVariable(const SectionChunk *A, const SectionChunk *B) {
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;
Expand All @@ -171,7 +171,7 @@ bool ICF::forEachGroup(std::vector<SectionChunk *> &Chunks, Comparator Eq) {
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;
}
Expand Down

0 comments on commit 29d8eef

Please sign in to comment.