summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-03 11:00:55 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-03 11:00:55 -0800
commita4c2588fd5144b0b8759865d42138e1f6bb228a9 (patch)
treefa9df94c66575e1625921c59e43d4e3f93b07030 /src/wasm.h
parent948f9255e2adac2b9e8b290742f06a515c14d043 (diff)
downloadbinaryen-a4c2588fd5144b0b8759865d42138e1f6bb228a9.tar.gz
binaryen-a4c2588fd5144b0b8759865d42138e1f6bb228a9.tar.bz2
binaryen-a4c2588fd5144b0b8759865d42138e1f6bb228a9.zip
add memorySize to Module
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 553bb8728..5193e1728 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -781,6 +781,7 @@ public:
std::vector<Export> exports;
Table table;
std::vector<Function*> functions;
+ size_t memorySize;
Module() {}
@@ -789,7 +790,7 @@ public:
printOpening(o, "module", true);
incIndent(o, indent);
doIndent(o, indent);
- printOpening(o, "memory") << " 16777216)\n"; // XXX
+ printOpening(o, "memory") << " " << module.memorySize << " " << module.memorySize << ")\n";
for (auto& curr : module.functionTypes) {
doIndent(o, indent);
curr.second->print(o, indent, true);