diff options
author | Jacob Gravelle <jgravelle@google.com> | 2018-02-14 10:30:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 10:30:16 -0800 |
commit | ee78bc9bccb02bb2b63fbb881fd2893a5fca0044 (patch) | |
tree | f757a2b8d0baed7d73628905038894217ab4bdee /src/wasm-io.h | |
parent | e97d485bb1f1818e2c2118d28507d49cb61ea57b (diff) | |
download | binaryen-ee78bc9bccb02bb2b63fbb881fd2893a5fca0044.tar.gz binaryen-ee78bc9bccb02bb2b63fbb881fd2893a5fca0044.tar.bz2 binaryen-ee78bc9bccb02bb2b63fbb881fd2893a5fca0044.zip |
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
Diffstat (limited to 'src/wasm-io.h')
-rw-r--r-- | src/wasm-io.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); }; |