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/ir/module-splitting.cpp | |
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/ir/module-splitting.cpp')
-rw-r--r-- | src/ir/module-splitting.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ir/module-splitting.cpp b/src/ir/module-splitting.cpp index 9c5c66641..8ad501fe1 100644 --- a/src/ir/module-splitting.cpp +++ b/src/ir/module-splitting.cpp @@ -18,7 +18,7 @@ // // 1. Create the new secondary module. // -// 2. Export globals, events, tables, and memories from the primary module and +// 2. Export globals, tags, tables, and memories from the primary module and // import them in the secondary module. // // 3. Move the deferred functions from the primary to the secondary module. @@ -648,12 +648,12 @@ void ModuleSplitter::shareImportableItems() { secondary.addGlobal(std::move(secondaryGlobal)); } - for (auto& event : primary.events) { - auto secondaryEvent = std::make_unique<Event>(); - secondaryEvent->attribute = event->attribute; - secondaryEvent->sig = event->sig; - makeImportExport(*event, *secondaryEvent, "event", ExternalKind::Event); - secondary.addEvent(std::move(secondaryEvent)); + for (auto& tag : primary.tags) { + auto secondaryTag = std::make_unique<Tag>(); + secondaryTag->attribute = tag->attribute; + secondaryTag->sig = tag->sig; + makeImportExport(*tag, *secondaryTag, "tag", ExternalKind::Tag); + secondary.addTag(std::move(secondaryTag)); } } |