summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 63b861174..9dc140efe 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -924,20 +924,20 @@ public:
};
class Module {
-public:
- // wasm contents
+ // wasm contents (don't access these from outside; use add*() and the *Map objects)
std::vector<FunctionType*> functionTypes;
std::vector<Import*> imports;
std::vector<Export*> exports;
- Table table;
std::vector<Function*> functions;
+public:
// utility maps
std::map<Name, FunctionType*> functionTypesMap;
std::map<Name, Import*> importsMap;
std::map<Name, Export*> exportsMap;
std::map<Name, Function*> functionsMap;
+ Table table;
Memory memory;
Module() : functionTypeIndex(0), importIndex(0), exportIndex(0), functionIndex(0) {}