Index: include/llvm/BinaryFormat/Wasm.h =================================================================== --- include/llvm/BinaryFormat/Wasm.h +++ include/llvm/BinaryFormat/Wasm.h @@ -331,6 +331,14 @@ return !(LHS == RHS); } +inline bool operator==(const WasmEventType &LHS, const WasmEventType &RHS) { + return LHS.Attribute == RHS.Attribute && LHS.SigIndex == RHS.SigIndex; +} + +inline bool operator!=(const WasmEventType &LHS, const WasmEventType &RHS) { + return !(LHS == RHS); +} + std::string toString(wasm::WasmSymbolType type); std::string relocTypetoString(uint32_t type);