From 7d0bb485aa40492c85181f477ae39e6bca56234b Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 9 Nov 2016 11:58:14 -0800 Subject: add a --symbolmap option to wasm-as, which emits a side file with the name mapping (similar to Names section, but external) --- src/wasm-binary.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index efff5a77b..6ec55f757 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -527,6 +527,7 @@ class WasmBinaryWriter : public Visitor { BufferWithRandomAccess& o; bool debug; bool debugInfo = true; + std::string symbolMap; MixedArena allocator; @@ -537,6 +538,7 @@ public: } void setDebugInfo(bool set) { debugInfo = set; } + void setSymbolMap(std::string set) { symbolMap = set; } void write(); void writeHeader(); @@ -569,6 +571,7 @@ public: void writeFunctionTableDeclaration(); void writeTableElements(); void writeNames(); + void writeSymbolMap(); // helpers void writeInlineString(const char* name); -- cgit v1.2.3