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 13:01:46 +09:00
parent 414a6fa3c0
commit 183da2980e
2 changed files with 5 additions and 4 deletions

View File

@ -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) {

1
mold.h
View File

@ -53,6 +53,7 @@ using llvm::object::ELFFile;
class Symbol;
class InputChunk;
class InputSection;
class MergeableSection;
class ObjectFile;
class OutputChunk;
class OutputSection;