summaryrefslogtreecommitdiff
path: root/src/support/name.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@users.noreply.github.com>2017-08-02 20:20:14 -0700
committerAlon Zakai <alonzakai@gmail.com>2017-08-02 20:20:14 -0700
commitffd9a72d28d36915fb173a6d52fbb6e43f7c15db (patch)
tree0dbd0f9d99fc20ab1c1e63395e8f399fd51cf806 /src/support/name.h
parentde15161e110f26212095c5cf4faf2e3668d2531b (diff)
downloadbinaryen-ffd9a72d28d36915fb173a6d52fbb6e43f7c15db.tar.gz
binaryen-ffd9a72d28d36915fb173a6d52fbb6e43f7c15db.tar.bz2
binaryen-ffd9a72d28d36915fb173a6d52fbb6e43f7c15db.zip
Get wasm2asm building again (#1107)
* Get wasm2asm building again Updates CMakeLists.txt to have wasm2asm built by default, updates wasm2asm.h to account for recent interface changes, and restores JSPrinter functionality. * Implement splice for array values * Clean up wasm2asm testing * Print semicolons after statements in blocks * Cleanups and semicolons for condition arms * Prettify semicolon emission
Diffstat (limited to 'src/support/name.h')
-rw-r--r--src/support/name.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/support/name.h b/src/support/name.h
index 9853f5462..b77397555 100644
--- a/src/support/name.h
+++ b/src/support/name.h
@@ -55,4 +55,11 @@ struct Name : public cashew::IString {
} // namespace wasm
+namespace std {
+
+template <> struct hash<wasm::Name> : hash<cashew::IString> {};
+
+} // namespace std
+
+
#endif // wasm_support_string_h