31 const ::wasm::Module *
ref()
const {
return ref_; }
35 std::pair<uint8_t*, std::size_t>
binary()
const;
40 void dump(std::ostream &out)
const;
A WasmModule is a wrapper around a [Binaryen] (https://github.com/WebAssembly/binaryen) wasm::Module.
::wasm::Module * ref()
Returns the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module.
std::pair< uint8_t *, std::size_t > binary() const
Returns the binary representation of this module in a freshly allocated memory.
const ::wasm::Module * ref() const
Returns the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module.
friend std::ostream & operator<<(std::ostream &out, const WasmModule &module)
Print module in human-readable text format.
WasmModule(WasmModule &&)=default
WasmModule(const WasmModule &)=delete
::wasm::Module * ref_
the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module