summaryrefslogtreecommitdiff
path: root/src/wasm-io.h
diff options
context:
space:
mode:
authorYury Delendik <ydelendik@mozilla.com>2017-06-01 14:53:42 -0500
committerAlon Zakai <alonzakai@gmail.com>2017-06-01 12:53:42 -0700
commit0dc07eaa7db35cf65edbbccebe5c89b995613745 (patch)
tree0718148a976b882c826c09189a3e779be311c69e /src/wasm-io.h
parentfcbe14a64d082117d7aab9bbf479e941964cd0de (diff)
downloadbinaryen-0dc07eaa7db35cf65edbbccebe5c89b995613745.tar.gz
binaryen-0dc07eaa7db35cf65edbbccebe5c89b995613745.tar.bz2
binaryen-0dc07eaa7db35cf65edbbccebe5c89b995613745.zip
Exporting/importing debug location information from .wast/.asm.js/.s formats (#1017)
* Extends wasm-as, wasm-dis and s2wasm to consume debug locations. * Exports source map from asm2wasm
Diffstat (limited to 'src/wasm-io.h')
-rw-r--r--src/wasm-io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-io.h b/src/wasm-io.h
index 803cbaf90..afdc4503c 100644
--- a/src/wasm-io.h
+++ b/src/wasm-io.h
@@ -48,11 +48,15 @@ class ModuleWriter : public ModuleIO {
bool binary = true;
bool debugInfo = false;
std::string symbolMap;
+ std::string sourceMapFilename;
+ std::string sourceMapUrl;
public:
void setBinary(bool binary_) { binary = binary_; }
void setDebugInfo(bool debugInfo_) { debugInfo = debugInfo_; }
void setSymbolMap(std::string symbolMap_) { symbolMap = symbolMap_; }
+ void setSourceMapFilename(std::string sourceMapFilename_) { sourceMapFilename = sourceMapFilename_; }
+ void setSourceMapUrl(std::string sourceMapUrl_) { sourceMapUrl = sourceMapUrl_; }
// write text
void writeText(Module& wasm, std::string filename);