diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-20 18:25:28 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-20 18:25:28 -0800 |
commit | ed77a619dc1550ce4ac4c0c420093b25e687996a (patch) | |
tree | d256f805d7a5a39e52933522d6dbddc320abb944 /src/passes/Print.cpp | |
parent | 8039a98d3b4b978a4aa2d8486c35596165981c3d (diff) | |
download | binaryen-ed77a619dc1550ce4ac4c0c420093b25e687996a.tar.gz binaryen-ed77a619dc1550ce4ac4c0c420093b25e687996a.tar.bz2 binaryen-ed77a619dc1550ce4ac4c0c420093b25e687996a.zip |
do not print alignment if it is the implicit default, which is the number of bytes
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); |