summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index 61383f084..75c4f0dec 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -134,6 +134,7 @@ class SExpressionWasmBuilder {
int tableCounter = 0;
int elemCounter = 0;
int memoryCounter = 0;
+ int dataCounter = 0;
// we need to know function return types before we parse their contents
std::map<Name, HeapType> functionTypes;
std::unordered_map<cashew::IString, Index> debugInfoFileIndices;
@@ -320,8 +321,12 @@ private:
void stringToBinary(const char* input, size_t size, std::vector<char>& data);
void parseMemory(Element& s, bool preParseImport = false);
void parseData(Element& s);
- void parseInnerData(
- Element& s, Index i, Name name, Expression* offset, bool isPassive);
+ void parseInnerData(Element& s,
+ Index i,
+ Name name,
+ bool hasExplicitName,
+ Expression* offset,
+ bool isPassive);
void parseExport(Element& s);
void parseImport(Element& s);
void parseGlobal(Element& s, bool preParseImport = false);