summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-08-26 09:51:12 -0700
committerGitHub <noreply@github.com>2022-08-26 16:51:12 +0000
commitde2120298d260c5ffe5165428359028d76d14b86 (patch)
tree2d0867065884b4b86ad1c93bec8c8d193cfeec39 /src/wasm-binary.h
parent47b29f9ab6caff2070860a60e656ec99239f7521 (diff)
downloadbinaryen-de2120298d260c5ffe5165428359028d76d14b86.tar.gz
binaryen-de2120298d260c5ffe5165428359028d76d14b86.tar.bz2
binaryen-de2120298d260c5ffe5165428359028d76d14b86.zip
Add support for Tag names in the Names section (#4970)
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index f6924aa14..a00a1df46 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -454,6 +454,7 @@ enum Subsection {
NameData = 9,
// see: https://github.com/WebAssembly/gc/issues/193
NameField = 10,
+ NameTag = 11,
DylinkMemInfo = 1,
DylinkNeeded = 2,
@@ -1552,6 +1553,9 @@ public:
// at index i we have all refs to the global i
std::map<Index, std::vector<Name*>> globalRefs;
+ // at index i we have all refs to the tag i
+ std::map<Index, std::vector<Name*>> tagRefs;
+
// Throws a parsing error if we are not in a function context
void requireFunctionContext(const char* error);