From: Heejin Ahn Date: Wed, 5 Dec 2018 23:10:09 +0000 (+0000) Subject: [WebAssembly] Change event section code to 13 X-Git-Tag: llvmorg-8.0.0-rc1~2779 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e5cc0b6ef3638b3078ee8b55d5d2cac16a7bc3e;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h index 3f56e23..f1d6e04 100644 --- a/llvm/include/llvm/BinaryFormat/Wasm.h +++ b/llvm/include/llvm/BinaryFormat/Wasm.h @@ -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. diff --git a/llvm/test/MC/WebAssembly/event-section.ll b/llvm/test/MC/WebAssembly/event-section.ll index 59cfe11..2138170 100644 --- a/llvm/test/MC/WebAssembly/event-section.ll +++ b/llvm/test/MC/WebAssembly/event-section.ll @@ -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