1
0
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:
Heejin Ahn 2018-11-18 11:53:35 +00:00
parent 510bd8c99e
commit 7bf5308b65

View File

@ -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);