diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-12-08 06:16:13 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-12-08 06:16:13 +0000 |
commit | a2125b8d9953e3720e9a9ec621ccbfd5f2cd78f0 (patch) | |
tree | 00cb47c50f1b46c5e8ac9f05f17e95d5ffb2d6a7 /llvm/include/llvm/BinaryFormat/Wasm.h | |
parent | fe5a6c315be58370b06cd41a1067255d7bbacc52 (diff) | |
download | bcm5719-llvm-a2125b8d9953e3720e9a9ec621ccbfd5f2cd78f0.tar.gz bcm5719-llvm-a2125b8d9953e3720e9a9ec621ccbfd5f2cd78f0.zip |
[WebAssembly] Make WasmSymbol's signature usable for events (NFC)
Summary:
WasmSignature used to use its `WasmSignature` member variable only for
function types, but now it also can be used for events as well.
Reviewers: sbc100
Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D55247
llvm-svn: 348702
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r-- | llvm/include/llvm/BinaryFormat/Wasm.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h index f1d6e045038..dc1cfd8e7b9 100644 --- a/llvm/include/llvm/BinaryFormat/Wasm.h +++ b/llvm/include/llvm/BinaryFormat/Wasm.h @@ -331,14 +331,6 @@ 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); |