diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp --- a/llvm/lib/ObjectYAML/WasmYAML.cpp +++ b/llvm/lib/ObjectYAML/WasmYAML.cpp @@ -614,6 +614,7 @@ #define WASM_RELOC(name, value) IO.enumCase(Type, #name, wasm::name); #include "llvm/BinaryFormat/WasmRelocs.def" #undef WASM_RELOC + IO.enumFallback(Type); } } // end namespace yaml diff --git a/llvm/test/ObjectYAML/wasm/event_section.yaml b/llvm/test/ObjectYAML/wasm/event_section.yaml --- a/llvm/test/ObjectYAML/wasm/event_section.yaml +++ b/llvm/test/ObjectYAML/wasm/event_section.yaml @@ -27,6 +27,9 @@ - Type: R_WASM_EVENT_INDEX_LEB Index: 1 Offset: 0x00000006 + - Type: 10 + Index: 1 + Offset: 0x00000006 Functions: - Index: 0 Locals: @@ -74,6 +77,9 @@ # CHECK-NEXT: - Type: R_WASM_EVENT_INDEX_LEB # CHECK-NEXT: Index: 1 # CHECK-NEXT: Offset: 0x6 +# CHECK-NEXT: - Type: R_WASM_EVENT_INDEX_LEB +# CHECK-NEXT: Index: 1 +# CHECK-NEXT: Offset: 0x6 # CHECK-NEXT: Functions: # CHECK-NEXT: - Index: 0 # CHECK-NEXT: Locals: