diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-12 14:40:26 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-08-12 20:16:32 -0700 |
commit | 35bd9109ab07aa21f9e55214a61390fa61c93638 (patch) | |
tree | 533fe16da8fcb13492abb6c826dee1827fdc1f78 /src/passes/Print.cpp | |
parent | 7e3917884152eda021cff9107b5f789aee92fb1b (diff) | |
download | binaryen-35bd9109ab07aa21f9e55214a61390fa61c93638.tar.gz binaryen-35bd9109ab07aa21f9e55214a61390fa61c93638.tar.bz2 binaryen-35bd9109ab07aa21f9e55214a61390fa61c93638.zip |
support function table initial and max sizes, and new printing format
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index eb97eead5..711cc8a84 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -575,7 +575,11 @@ struct PrintSExpression : public Visitor<PrintSExpression> { decIndent(); } void visitTable(Table *curr) { - printOpening(o, "table"); + printOpening(o, "table") << ' ' << curr->initial; + if (curr->max && curr->max != Table::kMaxSize) o << ' ' << curr->max; + o << " anyfunc)\n"; + doIndent(o, indent); + printOpening(o, "elem", true); for (auto name : curr->names) { o << ' '; printName(name); |