Skip to content

Commit a9a7f91

Browse files
committed
comments
1 parent 8406aa7 commit a9a7f91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/tools/wasm-split/wasm-split.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,14 @@ void multiSplitModule(const WasmSplitOptions& options) {
378378
Module wasm;
379379
parseInput(wasm, options);
380380

381+
// Map module names to the functions that should be in the modules.
381382
std::map<std::string, std::unordered_set<std::string>> moduleFuncs;
383+
// The module for which we are currently parsing a set of functions.
382384
std::string currModule;
385+
// The set of functions we are currently inserting into.
383386
std::unordered_set<std::string>* currFuncs = nullptr;
387+
// Map functions to their modules to ensure no function is assigned to
388+
// multiple modules.
384389
std::unordered_map<std::string, std::string> funcModules;
385390

386391
std::string line;

0 commit comments

Comments
 (0)