summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r--src/wasm/wasm-binary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index 8fcdc3dea..3d9a1ba9b 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -295,7 +295,7 @@ void WasmBinaryWriter::writeFunctionSignatures() {
}
void WasmBinaryWriter::writeExpression(Expression* curr) {
- ExpressionStackWriter<WasmBinaryWriter>(curr, *this, o, debug);
+ BinaryenIRToBinaryWriter(*this, o).visit(curr);
}
void WasmBinaryWriter::writeFunctions() {
@@ -322,12 +322,12 @@ void WasmBinaryWriter::writeFunctions() {
if (debug) {
std::cerr << "write Stack IR" << std::endl;
}
- StackIRFunctionStackWriter<WasmBinaryWriter>(func, *this, o, debug);
+ StackIRToBinaryWriter(*this, o, func).write();
} else {
if (debug) {
std::cerr << "write Binaryen IR" << std::endl;
}
- FunctionStackWriter<WasmBinaryWriter>(func, *this, o, sourceMap, debug);
+ BinaryenIRToBinaryWriter(*this, o, func, sourceMap).write();
}
size_t size = o.size() - start;
assert(size <= std::numeric_limits<uint32_t>::max());