1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 02:44:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-08 09:04:19 +09:00
parent 8969c68ed0
commit 7ca02031ad

View File

@ -206,9 +206,9 @@ static void bin_sections(std::vector<ObjectFile *> &files) {
for (ArrayRef<std::vector<InputSection *>> group : groups)
for (int i = 0; i < group.size(); i++)
sizes[i] += group[i].size();
for (int i = 0; i < sizes.size(); i++)
tbb::parallel_for(0, (int)sizes.size(), [&](int i) {
OutputSection::instances[i]->sections.reserve(sizes[i]);
});
for (ArrayRef<std::vector<InputSection *>> group : groups) {
for (int i = 0; i < group.size(); i++) {