llvm.org GIT mirror llvm / b10cbf0
[WebAssembly] Add equality comparison operators for WasmEventType Summary: This was missing in D54096. Independent tests for this is not available here, because these are used in lld. Reviewers: sbc100 Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D54662 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347154 91177308-0d34-0410-b5e6-96231b3b80d8 Heejin Ahn 1 year, 1 day ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
330330 return !(LHS == RHS);
331331 }
332332
333 inline bool operator==(const WasmEventType &LHS, const WasmEventType &RHS) {
334 return LHS.Attribute == RHS.Attribute && LHS.SigIndex == RHS.SigIndex;
335 }
336
337 inline bool operator!=(const WasmEventType &LHS, const WasmEventType &RHS) {
338 return !(LHS == RHS);
339 }
340
333341 std::string toString(wasm::WasmSymbolType type);
334342 std::string relocTypetoString(uint32_t type);
335343