1
1
mirror of https://github.com/rui314/mold.git synced 2025-01-06 07:58:34 +03:00
This commit is contained in:
Rui Ueyama 2021-01-28 13:14:16 +09:00
parent f4fa2cedd7
commit 14ff63a327

8
icf.cc
View File

@ -107,8 +107,8 @@ struct Entry {
Digest digest;
};
static void gather_sections(std::vector<InputSection *> &sections,
std::vector<Digest> &digests,
static void gather_sections(std::vector<Digest> &digests,
std::vector<InputSection *> &sections,
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);