mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
wip
This commit is contained in:
parent
2cc93f4fea
commit
3eb3d9edf7
@ -41,12 +41,12 @@ void gc_sections() {
|
||||
Timer t("gc_sections");
|
||||
tbb::concurrent_vector<InputSection *> roots;
|
||||
|
||||
// Add sections that are not subject to garbage collection.
|
||||
auto enqueue = [&](InputSection *isec) {
|
||||
if (mark_section(isec))
|
||||
roots.push_back(isec);
|
||||
};
|
||||
|
||||
// Add sections that are not subject to garbage collection.
|
||||
tbb::parallel_for_each(out::objs, [&](ObjectFile *file) {
|
||||
for (InputSection *isec : file->sections) {
|
||||
if (!isec)
|
||||
|
Loading…
Reference in New Issue
Block a user