diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index e5bfd9f2d..7e932c305 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -724,6 +724,7 @@ public: void writeNames(); void writeSourceMapUrl(); void writeSymbolMap(); + void writeUserSections(); void writeSourceMapProlog(); void writeSourceMapEpilog(); @@ -814,7 +815,14 @@ class WasmBinaryBuilder { std::set<BinaryConsts::Section> seenSections; public: - WasmBinaryBuilder(Module& wasm, const std::vector<char>& input, bool debug) : wasm(wasm), allocator(wasm.allocator), input(input), debug(debug), sourceMap(nullptr), nextDebugLocation(0, { 0, 0, 0 }), useDebugLocation(false) {} + WasmBinaryBuilder(Module& wasm, const std::vector<char>& input, bool debug) + : wasm(wasm), + allocator(wasm.allocator), + input(input), + debug(debug), + sourceMap(nullptr), + nextDebugLocation(0, { 0, 0, 0 }), + useDebugLocation(false) {} void read(); void readUserSection(size_t payloadLen); |