From ee78bc9bccb02bb2b63fbb881fd2893a5fca0044 Mon Sep 17 00:00:00 2001 From: Jacob Gravelle Date: Wed, 14 Feb 2018 10:30:16 -0800 Subject: Fold wasm-link-metadata into wasm-emscripten-finalize (#1408) * wasm-link-metadata: Use `__data_end` symbol. * Add --global-base param to emscripten-wasm-finalize to compute staticBump properly * Let ModuleWriter write to a provided Output object --- src/wasm-io.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wasm-io.h') diff --git a/src/wasm-io.h b/src/wasm-io.h index 17a722472..cbb8f36c8 100644 --- a/src/wasm-io.h +++ b/src/wasm-io.h @@ -23,6 +23,7 @@ #include "wasm.h" #include "parsing.h" +#include "support/file.h" namespace wasm { @@ -62,12 +63,15 @@ public: void setSourceMapUrl(std::string sourceMapUrl_) { sourceMapUrl = sourceMapUrl_; } // write text + void writeText(Module& wasm, Output& output); void writeText(Module& wasm, std::string filename); // write binary + void writeBinary(Module& wasm, Output& output); void writeBinary(Module& wasm, std::string filename); // write text or binary, defaulting to binary unless setBinary(false), // and unless there is no output file (in which case we write text // to stdout). + void write(Module& wasm, Output& output); void write(Module& wasm, std::string filename); }; -- cgit v1.2.3