summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-04 16:45:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-04 17:38:40 -0700
commit70a61e1b1fc2f85c81201b6a1e7d2e71e36dcee3 (patch)
tree728d5bb76af50057a7804c78cbae833d3f3ece7e /src/wasm-s-parser.h
parent178b869dcdab8ad5877101cbc0347a23e80b02c0 (diff)
downloadbinaryen-70a61e1b1fc2f85c81201b6a1e7d2e71e36dcee3.tar.gz
binaryen-70a61e1b1fc2f85c81201b6a1e7d2e71e36dcee3.tar.bz2
binaryen-70a61e1b1fc2f85c81201b6a1e7d2e71e36dcee3.zip
add simpler constructor for SExpressionWasmBuilder
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index c13cd3512..fb3268877 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -255,6 +255,9 @@ public:
}
}
+ // constructor without onError
+ SExpressionWasmBuilder(AllocatingModule& wasm, Element& module, bool debug=false) : SExpressionWasmBuilder(wasm, module, [&]() { abort(); }, debug) {}
+
private:
// pre-parse types and function definitions, so we know function return types before parsing their contents