[PATCH] D55343: [WebAssembly] Change event section code to 13

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 5 15:02:36 PST 2018


aheejin created this revision.
aheejin added reviewers: binji, sbc100.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, dschuff.

We decided to change the event section code from 12 to 13 as new
`DataCount` section in the bulk memory operations proposal will take the
code 12 instead.


Repository:
  rL LLVM

https://reviews.llvm.org/D55343

Files:
  include/llvm/BinaryFormat/Wasm.h
  test/MC/WebAssembly/event-section.ll


Index: test/MC/WebAssembly/event-section.ll
===================================================================
--- test/MC/WebAssembly/event-section.ll
+++ test/MC/WebAssembly/event-section.ll
@@ -53,6 +53,6 @@
 ; CHECK-NEXT:         Flags:           [ BINDING_WEAK ]
 ; CHECK-NEXT:         Event:           0
 
-; SEC:          Type: EVENT (0xC)
+; SEC:          Type: EVENT (0xD)
 ; SEC-NEXT:     Size: 3
 ; SEC-NEXT:     Offset: 97
Index: include/llvm/BinaryFormat/Wasm.h
===================================================================
--- include/llvm/BinaryFormat/Wasm.h
+++ include/llvm/BinaryFormat/Wasm.h
@@ -199,7 +199,7 @@
   WASM_SEC_ELEM = 9,     // Elements section
   WASM_SEC_CODE = 10,    // Function bodies (code)
   WASM_SEC_DATA = 11,    // Data segments
-  WASM_SEC_EVENT = 12    // Event declarations
+  WASM_SEC_EVENT = 13    // Event declarations
 };
 
 // Type immediate encodings used in various contexts.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55343.176885.patch
Type: text/x-patch
Size: 936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181205/7daca724/attachment.bin>


More information about the llvm-commits mailing list