summaryrefslogtreecommitdiff
path: root/src/wasm-type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r--src/wasm-type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h
index f3db912d1..05cfeaef5 100644
--- a/src/wasm-type.h
+++ b/src/wasm-type.h
@@ -175,6 +175,11 @@ std::ostream& operator<<(std::ostream& os, Signature t);
} // namespace wasm
+template<> class std::hash<wasm::Type> {
+public:
+ size_t operator()(const wasm::Type& type) const;
+};
+
template<> class std::hash<wasm::Signature> {
public:
size_t operator()(const wasm::Signature& sig) const;