[llvm] r348424 - [WebAssembly] Change event section code to 13
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 5 15:10:09 PST 2018
Author: aheejin
Date: Wed Dec 5 15:10:09 2018
New Revision: 348424
URL: http://llvm.org/viewvc/llvm-project?rev=348424&view=rev
Log:
[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
Modified:
llvm/trunk/include/llvm/BinaryFormat/Wasm.h
llvm/trunk/test/MC/WebAssembly/event-section.ll
Modified: llvm/trunk/include/llvm/BinaryFormat/Wasm.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BinaryFormat/Wasm.h?rev=348424&r1=348423&r2=348424&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BinaryFormat/Wasm.h (original)
+++ llvm/trunk/include/llvm/BinaryFormat/Wasm.h Wed Dec 5 15:10:09 2018
@@ -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.
Modified: llvm/trunk/test/MC/WebAssembly/event-section.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/WebAssembly/event-section.ll?rev=348424&r1=348423&r2=348424&view=diff
==============================================================================
--- llvm/trunk/test/MC/WebAssembly/event-section.ll (original)
+++ llvm/trunk/test/MC/WebAssembly/event-section.ll Wed Dec 5 15:10:09 2018
@@ -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
More information about the llvm-commits
mailing list