mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 02:44:48 +03:00
temporary
This commit is contained in:
parent
414a6fa3c0
commit
183da2980e
8
main.cc
8
main.cc
@ -141,10 +141,6 @@ static std::vector<ArrayRef<T>> split(const std::vector<T> &input, int unit) {
|
||||
}
|
||||
|
||||
static void handle_mergeable_strings(std::vector<ObjectFile *> &files) {
|
||||
static Counter counter("merged_strings");
|
||||
for (MergedSection *osec : MergedSection::instances)
|
||||
counter.inc(osec->map.size());
|
||||
|
||||
// Resolve mergeable string pieces
|
||||
tbb::parallel_for_each(files, [](ObjectFile *file) {
|
||||
for (InputSection *isec : file->mergeable_sections) {
|
||||
@ -179,6 +175,10 @@ static void handle_mergeable_strings(std::vector<ObjectFile *> &files) {
|
||||
osec->shdr.sh_size += isec->merged_size;
|
||||
}
|
||||
}
|
||||
|
||||
static Counter counter("merged_strings");
|
||||
for (MergedSection *osec : MergedSection::instances)
|
||||
counter.inc(osec->map.size());
|
||||
}
|
||||
|
||||
static void bin_sections(std::vector<ObjectFile *> &files) {
|
||||
|
Loading…
Reference in New Issue
Block a user