[WebAssembly] Change event section code to 13

Summary:
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.

Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D55343

llvm-svn: 348424
This commit is contained in:
Heejin Ahn 2018-12-05 23:10:09 +00:00
parent 81980ee8e7
commit 1e3c9d79ba
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ enum : unsigned {
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.

View File

@ -53,6 +53,6 @@ define i32 @test_throw1(i8* %p) {
; 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