mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[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 llvm-svn: 347154
This commit is contained in:
parent
510bd8c99e
commit
7bf5308b65
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user