summaryrefslogtreecommitdiff
path: root/src/emscripten-optimizer
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-01 15:07:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-01 15:07:02 -0800
commitfec53d40e6cbd7948ca1a9fb86e3699c6ac276c8 (patch)
treeb03899bc85db77655c3bb4d50c2ce040cea20c74 /src/emscripten-optimizer
parent39360bab029b18aeb82ba13e5c558d5385787d2e (diff)
downloadbinaryen-fec53d40e6cbd7948ca1a9fb86e3699c6ac276c8.tar.gz
binaryen-fec53d40e6cbd7948ca1a9fb86e3699c6ac276c8.tar.bz2
binaryen-fec53d40e6cbd7948ca1a9fb86e3699c6ac276c8.zip
wasm2asm progress
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r--src/emscripten-optimizer/simple_ast.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emscripten-optimizer/simple_ast.h b/src/emscripten-optimizer/simple_ast.h
index 396f225d7..2f585dfce 100644
--- a/src/emscripten-optimizer/simple_ast.h
+++ b/src/emscripten-optimizer/simple_ast.h
@@ -1447,6 +1447,12 @@ public:
.push_back(ifFalse);
}
+ static Ref makeSeq(Ref left, Ref right) {
+ return &makeRawArray(3)->push_back(makeRawString(SEQ))
+ .push_back(left)
+ .push_back(right);
+ }
+
static Ref makeDo(Ref body, Ref condition) {
return &makeRawArray(3)->push_back(makeRawString(DO))
.push_back(condition)