From 28e88b9f993a2e45662fde0b10920aa22e7b1b7f Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 18 Jun 2021 14:20:03 -0700 Subject: [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 --- src/ir/module-splitting.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ir/module-splitting.cpp') 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(); - 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(); + secondaryTag->attribute = tag->attribute; + secondaryTag->sig = tag->sig; + makeImportExport(*tag, *secondaryTag, "tag", ExternalKind::Tag); + secondary.addTag(std::move(secondaryTag)); } } -- cgit v1.2.3