diff options
Diffstat (limited to 'src/wasm-io.h')
-rw-r--r-- | src/wasm-io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-io.h b/src/wasm-io.h index 036dc9c8c..1e28b5f92 100644 --- a/src/wasm-io.h +++ b/src/wasm-io.h @@ -82,6 +82,10 @@ private: class ModuleWriter : public ModuleIOBase { bool binary = true; + + // TODO: Remove `emitModuleName`. See the comment in wasm-binary.h + bool emitModuleName = false; + std::string symbolMap; std::string sourceMapFilename; std::string sourceMapUrl; @@ -99,6 +103,7 @@ public: void setSourceMapUrl(std::string sourceMapUrl_) { sourceMapUrl = sourceMapUrl_; } + void setEmitModuleName(bool set) { emitModuleName = set; } // write text void writeText(Module& wasm, Output& output); |