summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-03 10:22:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-03 10:22:41 -0800
commit3505f2162d92fde5edb590254ec9553146b053bf (patch)
tree6f92db62cc4979e80e99878b01b55369fdd49268 /src/wasm.h
parentaa122695e53bb2c39175e2d04f626b2cd6c2e911 (diff)
downloadbinaryen-3505f2162d92fde5edb590254ec9553146b053bf.tar.gz
binaryen-3505f2162d92fde5edb590254ec9553146b053bf.tar.bz2
binaryen-3505f2162d92fde5edb590254ec9553146b053bf.zip
rename isWasmTypeFloat
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h
index d4ecabca3..32c6466b8 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -16,7 +16,9 @@
namespace wasm {
-// Basics
+// We use a Name for all of the identifiers. These are IStrings, so they are
+// all interned - comparisons etc are just pointer comparisons, so there is no
+// perf loss. Having names everywhere makes using the AST much nicer.
struct Name : public cashew::IString {
Name() : cashew::IString() {}
@@ -59,7 +61,7 @@ unsigned getWasmTypeSize(WasmType type) {
}
}
-bool isFloat(WasmType type) {
+bool isWasmTypeFloat(WasmType type) {
switch (type) {
case f32:
case f64: return true;