mirror of
https://github.com/rui314/mold.git
synced 2025-01-06 07:58:34 +03:00
wip
This commit is contained in:
parent
14ff63a327
commit
eec9d47fcb
16
icf.cc
16
icf.cc
@ -130,15 +130,15 @@ static void gather_sections(std::vector<Digest> &digests,
|
||||
tbb::parallel_for((i64)0, (i64)out::objs.size(), [&](i64 i) {
|
||||
i64 idx = section_indices[i];
|
||||
for (InputSection *isec : out::objs[i]->sections) {
|
||||
if (isec) {
|
||||
Entry &ent = entries[idx++];
|
||||
ent.isec = isec;
|
||||
ent.is_eligible = is_eligible(*isec);
|
||||
ent.digest = ent.is_eligible ? compute_digest(*isec) : get_random_bytes();
|
||||
if (!isec)
|
||||
continue;
|
||||
|
||||
if (ent.is_eligible)
|
||||
num_eligibles.local() += 1;
|
||||
}
|
||||
Entry &ent = entries[idx++];
|
||||
ent.isec = isec;
|
||||
ent.is_eligible = is_eligible(*isec);
|
||||
ent.digest = ent.is_eligible ? compute_digest(*isec) : get_random_bytes();
|
||||
if (ent.is_eligible)
|
||||
num_eligibles.local() += 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user