diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/binary-reader-objdump.cc | 2 | ||||
-rw-r--r-- | src/common.cc | 1 | ||||
-rw-r--r-- | src/common.h | 3 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 22b336b2..13db1497 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -1470,7 +1470,6 @@ Result BinaryReaderObjdump::OnFunctionSymbol(Index index, if (sym_name.empty()) { sym_name = GetFunctionName(func_index); } - assert(!sym_name.empty()); PrintDetails(" - [%d] F <" PRIstringview "> func=%" PRIindex, index, WABT_PRINTF_STRING_VIEW_ARG(sym_name), func_index); PrintSymbolFlags(flags); @@ -1487,7 +1486,6 @@ Result BinaryReaderObjdump::OnGlobalSymbol(Index index, sym_name = Name; } } - assert(!sym_name.empty()); PrintDetails(" - [%d] G <" PRIstringview "> global=%" PRIindex, index, WABT_PRINTF_STRING_VIEW_ARG(sym_name), global_index); PrintSymbolFlags(flags); diff --git a/src/common.cc b/src/common.cc index 398ef101..5b71ae9b 100644 --- a/src/common.cc +++ b/src/common.cc @@ -48,6 +48,7 @@ const char* g_reloc_type_name[] = { "R_WASM_MEMORY_ADDR_SLEB", "R_WASM_MEMORY_ADDR_I32", "R_WASM_TYPE_INDEX_LEB", "R_WASM_GLOBAL_INDEX_LEB", "R_WASM_FUNCTION_OFFSET_I32", "R_WASM_SECTION_OFFSET_I32", + "R_WASM_EVENT_INDEX_LEB", }; WABT_STATIC_ASSERT(WABT_ARRAY_SIZE(g_reloc_type_name) == kRelocTypeCount); diff --git a/src/common.h b/src/common.h index 49c1ce60..913693fc 100644 --- a/src/common.h +++ b/src/common.h @@ -225,9 +225,10 @@ enum class RelocType { GlobalIndexLEB = 7, // e.g. Immediate of get_global inst FunctionOffsetI32 = 8, // e.g. Code offset in DWARF metadata SectionOffsetI32 = 9, // e.g. Section offset in DWARF metadata + EventIndexLEB = 10, // e.g. Used in throw instructions First = FuncIndexLEB, - Last = SectionOffsetI32, + Last = EventIndexLEB, }; static const int kRelocTypeCount = WABT_ENUM_COUNT(RelocType); |