mirror of
https://github.com/rui314/mold.git
synced 2024-12-29 11:24:36 +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 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
|
// Resolve mergeable string pieces
|
||||||
tbb::parallel_for_each(files, [](ObjectFile *file) {
|
tbb::parallel_for_each(files, [](ObjectFile *file) {
|
||||||
for (InputSection *isec : file->mergeable_sections) {
|
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;
|
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) {
|
static void bin_sections(std::vector<ObjectFile *> &files) {
|
||||||
|
1
mold.h
1
mold.h
@ -53,6 +53,7 @@ using llvm::object::ELFFile;
|
|||||||
class Symbol;
|
class Symbol;
|
||||||
class InputChunk;
|
class InputChunk;
|
||||||
class InputSection;
|
class InputSection;
|
||||||
|
class MergeableSection;
|
||||||
class ObjectFile;
|
class ObjectFile;
|
||||||
class OutputChunk;
|
class OutputChunk;
|
||||||
class OutputSection;
|
class OutputSection;
|
||||||
|
Loading…
Reference in New Issue
Block a user