We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8406aa7 commit a9a7f91Copy full SHA for a9a7f91
1 file changed
src/tools/wasm-split/wasm-split.cpp
@@ -378,9 +378,14 @@ void multiSplitModule(const WasmSplitOptions& options) {
378
Module wasm;
379
parseInput(wasm, options);
380
381
+ // Map module names to the functions that should be in the modules.
382
std::map<std::string, std::unordered_set<std::string>> moduleFuncs;
383
+ // The module for which we are currently parsing a set of functions.
384
std::string currModule;
385
+ // The set of functions we are currently inserting into.
386
std::unordered_set<std::string>* currFuncs = nullptr;
387
+ // Map functions to their modules to ensure no function is assigned to
388
+ // multiple modules.
389
std::unordered_map<std::string, std::string> funcModules;
390
391
std::string line;
0 commit comments