Skip to content

Commit

Permalink
rename method to removeUnusedSecondaryElements
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Sep 16, 2024
1 parent b73586a commit c810a68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ir/module-splitting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ struct ModuleSplitter {
void exportImportCalledPrimaryFunctions();
void setupTablePatching();
void shareImportableItems();
void removeUnusedElements();
void removeUnusedSecondaryElements();

ModuleSplitter(Module& primary, const Config& config)
: config(config), secondaryPtr(initSecondary(primary)), primary(primary),
Expand All @@ -335,7 +335,7 @@ struct ModuleSplitter {
exportImportCalledPrimaryFunctions();
setupTablePatching();
shareImportableItems();
removeUnusedElements();
removeUnusedSecondaryElements();
}
};

Expand Down Expand Up @@ -874,7 +874,7 @@ void ModuleSplitter::shareImportableItems() {
}
}

void ModuleSplitter::removeUnusedElements() {
void ModuleSplitter::removeUnusedSecondaryElements() {
// TODO: It would be better to be more selective about only exporting and
// importing those items that the secondary module needs. This would reduce
// code size in the primary module as well.
Expand Down

0 comments on commit c810a68

Please sign in to comment.