summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-18 11:52:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-18 11:52:07 -0700
commit5494c531db30145e7bf8745b46e9784967781616 (patch)
tree6fcee181299b67ffeb5e4191e9f0c26a3d06fbc0 /src/wasm.h
parenta2b0849ab7e2ca0d6136c57db7321d20965b89f4 (diff)
downloadbinaryen-5494c531db30145e7bf8745b46e9784967781616.tar.gz
binaryen-5494c531db30145e7bf8745b46e9784967781616.tar.bz2
binaryen-5494c531db30145e7bf8745b46e9784967781616.zip
remove the AllocatingModule class, and just make Module have allocations. the distinction is not really that useful, and passes do need to allocate, so we would need to pass around AllocatingModules all around anyhow. (#361)
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wasm.h b/src/wasm.h
index d62d4fcab..93c9d8709 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1174,6 +1174,8 @@ public:
Memory memory;
Name start;
+ MixedArena allocator;
+
private:
// TODO: add a build option where Names are just indices, and then these methods are not needed
std::map<Name, FunctionType*> functionTypesMap;
@@ -1257,11 +1259,6 @@ private:
size_t functionTypeIndex, importIndex, exportIndex, functionIndex;
};
-class AllocatingModule : public Module {
- public:
- MixedArena allocator;
-};
-
} // namespace wasm
#endif // wasm_wasm_h