diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 14:57:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 14:57:31 -0800 |
commit | 734241d4061886009b6f31913672a615d499f230 (patch) | |
tree | ff3f0ddd6f2c3ae91192105bdf43e7d1076c6a8b /src/wasm.h | |
parent | 1f6860afeb96795bd3a2478dda2c55b2ecce34c8 (diff) | |
download | binaryen-734241d4061886009b6f31913672a615d499f230.tar.gz binaryen-734241d4061886009b6f31913672a615d499f230.tar.bz2 binaryen-734241d4061886009b6f31913672a615d499f230.zip |
emit offsets
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index 448e4e71b..6c8ec86b3 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -508,7 +508,9 @@ public: } restoreNormalColor(o); o << " align=" << align; - assert(!offset); + if (offset) { + o << " offset=" << offset; + } incIndent(o, indent); printFullLine(o, indent, ptr); return decIndent(o, indent); @@ -538,7 +540,9 @@ public: } restoreNormalColor(o); o << " align=" << align; - assert(!offset); + if (offset) { + o << " offset=" << offset; + } incIndent(o, indent); printFullLine(o, indent, ptr); printFullLine(o, indent, value); |