summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-29 17:11:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-29 17:11:56 -0700
commit19abe35b2c6d191e14170c993e757cee786867cb (patch)
tree6a8aa48cfffc33c2a73a633924c63a12a929b0e1 /src
parentafcd6fdb7fc9158a76616de552b53bd1c2b233df (diff)
downloadbinaryen-19abe35b2c6d191e14170c993e757cee786867cb.tar.gz
binaryen-19abe35b2c6d191e14170c993e757cee786867cb.tar.bz2
binaryen-19abe35b2c6d191e14170c993e757cee786867cb.zip
ignore switches for now
Diffstat (limited to 'src')
-rw-r--r--src/asm2wasm.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp
index ac8be340d..e3fb23c4f 100644
--- a/src/asm2wasm.cpp
+++ b/src/asm2wasm.cpp
@@ -1039,6 +1039,11 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
ret->list.push_back(process(ast[2]));
return ret;
} else if (what == SWITCH) {
+ // XXX switch is still in flux in the spec repo, just emit a placeholder
+ auto ret = allocator.alloc<Block>();
+ ret->var = IString("SWITCH_PLACEHOLDER");
+ return ret;
+#if 0
IString name = getNextId("switch");
breakStack.push_back(name);
auto ret = allocator.alloc<Switch>();
@@ -1062,6 +1067,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
}
breakStack.pop_back();
return ret;
+#endif
}
abort_on("confusing expression", ast);
};