From c57934eb52a0a415bb362f4e6f09065a40515e3f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 25 Jan 2016 17:48:26 -0800 Subject: support p2align for function alignment in s2wasm --- src/s2wasm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); -- cgit v1.2.3