From ed77a619dc1550ce4ac4c0c420093b25e687996a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 20 Feb 2016 18:25:28 -0800 Subject: do not print alignment if it is the implicit default, which is the number of bytes --- src/passes/Print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/passes/Print.cpp') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index fddae15ff..3e886074d 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -179,7 +179,7 @@ struct PrintSExpression : public WasmVisitor { if (curr->offset) { o << " offset=" << curr->offset; } - if (curr->align) { + if (curr->align != curr->bytes) { o << " align=" << curr->align; } incIndent(o, indent); @@ -204,7 +204,7 @@ struct PrintSExpression : public WasmVisitor { if (curr->offset) { o << " offset=" << curr->offset; } - if (curr->align) { + if (curr->align != curr->bytes) { o << " align=" << curr->align; } incIndent(o, indent); -- cgit v1.2.3