diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-20 20:11:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-20 20:11:26 -0800 |
commit | 7bf31d447bca02947b56f05edf0a171c68c92c7a (patch) | |
tree | 68be29a3584210aaa5161e9e681a55f99df24681 /src/passes/Print.cpp | |
parent | ebfac87c82cb8faa8cb55c0f51552bdb4ecb9169 (diff) | |
parent | ed77a619dc1550ce4ac4c0c420093b25e687996a (diff) | |
download | binaryen-7bf31d447bca02947b56f05edf0a171c68c92c7a.tar.gz binaryen-7bf31d447bca02947b56f05edf0a171c68c92c7a.tar.bz2 binaryen-7bf31d447bca02947b56f05edf0a171c68c92c7a.zip |
Merge pull request #206 from WebAssembly/align-implicit
Don't print the default alignment
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<PrintSExpression, void> { 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<PrintSExpression, void> { if (curr->offset) { o << " offset=" << curr->offset; } - if (curr->align) { + if (curr->align != curr->bytes) { o << " align=" << curr->align; } incIndent(o, indent); |