mirror of
https://github.com/rui314/mold.git
synced 2025-01-06 07:58:34 +03:00
wip
This commit is contained in:
parent
f4fa2cedd7
commit
14ff63a327
8
icf.cc
8
icf.cc
@ -107,8 +107,8 @@ struct Entry {
|
||||
Digest digest;
|
||||
};
|
||||
|
||||
static void gather_sections(std::vector<InputSection *> §ions,
|
||||
std::vector<Digest> &digests,
|
||||
static void gather_sections(std::vector<Digest> &digests,
|
||||
std::vector<InputSection *> §ions,
|
||||
std::vector<u32> &edges,
|
||||
std::vector<u32> &edge_indices) {
|
||||
Timer t("gather");
|
||||
@ -208,12 +208,12 @@ void icf_sections() {
|
||||
Timer t("icf");
|
||||
|
||||
// Prepare for the propagation rounds.
|
||||
std::vector<InputSection *> sections;
|
||||
std::vector<Digest> digests0;
|
||||
std::vector<InputSection *> sections;
|
||||
std::vector<u32> edges;
|
||||
std::vector<u32> edge_indices;
|
||||
|
||||
gather_sections(sections, digests0, edges, edge_indices);
|
||||
gather_sections(digests0, sections, edges, edge_indices);
|
||||
|
||||
Timer t2("propagate");
|
||||
std::vector<std::vector<Digest>> digests(2);
|
||||
|
Loading…
Reference in New Issue
Block a user