diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-25 17:48:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-25 17:48:26 -0800 |
commit | c57934eb52a0a415bb362f4e6f09065a40515e3f (patch) | |
tree | c20d5b40ce9e7ca868c4ae20ec493c4e32921725 /src/s2wasm.h | |
parent | 30b67c29dfd9a075b526043dfbf8556c918c6e5a (diff) | |
download | binaryen-c57934eb52a0a415bb362f4e6f09065a40515e3f.tar.gz binaryen-c57934eb52a0a415bb362f4e6f09065a40515e3f.tar.bz2 binaryen-c57934eb52a0a415bb362f4e6f09065a40515e3f.zip |
support p2align for function alignment in s2wasm
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index d9c8ecfe1..54682e4b0 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -371,7 +371,7 @@ private: else if (match("imports")) skipImports(); else if (match("data")) {} else if (match("ident")) {} - else if (match("section") || match("align")) s = strchr(s, '\n'); + else if (match("section") || match("align") || match("p2align")) s = strchr(s, '\n'); else if (match("Lfunc_end")) { // skip the next line, which has a .size we can ignore s = strstr(s, ".size"); |