diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-06-18 14:20:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 14:20:03 -0700 |
commit | 28e88b9f993a2e45662fde0b10920aa22e7b1b7f (patch) | |
tree | 77bbd5f1dd1bfcb089b12f6fa9fcf828c135c099 /src/wasm-s-parser.h | |
parent | 97e277c51218778d1d76fd59fed3b4ca7756382e (diff) | |
download | binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.tar.gz binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.tar.bz2 binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.zip |
[EH] Replace event with tag (#3937)
We recently decided to change 'event' to 'tag', and to 'event section'
to 'tag section', out of the rationale that the section contains a
generalized tag that references a type, which may be used for something
other than exceptions, and the name 'event' can be confusing in the web
context.
See
- https://github.com/WebAssembly/exception-handling/issues/159#issuecomment-857910130
- https://github.com/WebAssembly/exception-handling/pull/161
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index cc603e2e4..4145d781a 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -127,10 +127,10 @@ class SExpressionWasmBuilder { std::vector<Name> functionNames; std::vector<Name> tableNames; std::vector<Name> globalNames; - std::vector<Name> eventNames; + std::vector<Name> tagNames; int functionCounter = 0; int globalCounter = 0; - int eventCounter = 0; + int tagCounter = 0; int tableCounter = 0; int elemCounter = 0; int memoryCounter = 0; @@ -168,7 +168,7 @@ private: Name getFunctionName(Element& s); Name getTableName(Element& s); Name getGlobalName(Element& s); - Name getEventName(Element& s); + Name getTagName(Element& s); void parseStart(Element& s) { wasm.addStart(getFunctionName(*s[1])); } // returns the next index in s @@ -323,7 +323,7 @@ private: // Parses something like (func ..), (array ..), (struct) HeapType parseHeapType(Element& s); - void parseEvent(Element& s, bool preParseImport = false); + void parseTag(Element& s, bool preParseImport = false); Function::DebugLocation getDebugLocation(const SourceLocation& loc); |