summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-24 13:47:59 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-24 13:47:59 -0800
commit9ed14f5b12e1b6b2000f13952e6a075c9c307d9b (patch)
tree3d20d5747992dbfa77d51e3769574f125fda6e5f /src
parentd13a16c17de50546a2272627fee29e1ec5f64385 (diff)
downloadbinaryen-9ed14f5b12e1b6b2000f13952e6a075c9c307d9b.tar.gz
binaryen-9ed14f5b12e1b6b2000f13952e6a075c9c307d9b.tar.bz2
binaryen-9ed14f5b12e1b6b2000f13952e6a075c9c307d9b.zip
ignore function alignment, and parse globl in main process loop
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index b7682788a..c216d3713 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -314,7 +314,8 @@ private:
else if (match("imports")) skipImports();
else if (match("data")) {}
else if (match("ident")) {}
- else if (match("section")) s = strchr(s, '\n');
+ else if (match("section") || match("align")) s = strchr(s, '\n');
+ else if (match("globl")) parseGlobl();
else abort_on("process");
}
}