summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 839dcf3c2..e8f82f47c 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1501,6 +1501,14 @@ public:
}
importsMap.erase(name);
}
+ // TODO: remove* for other elements
+
+ void updateFunctionsMap() {
+ functionsMap.clear();
+ for (auto& func : functions) {
+ functionsMap[func->name] = func.get();
+ }
+ }
private:
size_t functionTypeIndex, importIndex, exportIndex, functionIndex;