summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index c22d3663e98..3f56e23addb 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -331,6 +331,14 @@ inline bool operator!=(const WasmGlobalType &LHS, const WasmGlobalType &RHS) {
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);
OpenPOWER on IntegriCloud