diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-27 18:46:20 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-27 21:19:11 -0800 |
commit | 30a371284f7a8128c52beec39ccbac03103a2b5c (patch) | |
tree | 9a93de1f4ac75adff0698623bd1cbd06e1e8e236 /src/wasm.h | |
parent | 9ced7de31c9317f2c9ad579bb6c7ff466741b968 (diff) | |
download | binaryen-30a371284f7a8128c52beec39ccbac03103a2b5c.tar.gz binaryen-30a371284f7a8128c52beec39ccbac03103a2b5c.tar.bz2 binaryen-30a371284f7a8128c52beec39ccbac03103a2b5c.zip |
Write each memory segment on its own line
30k+ column files are silly.
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index 856c0ebeb..91c318034 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1117,7 +1117,7 @@ public: printOpening(o, "memory") << " " << module.memory.initial; if (module.memory.max) o << " " << module.memory.max; for (auto segment : module.memory.segments) { - o << " (segment " << segment.offset << " \""; + o << "\n (segment " << segment.offset << " \""; for (size_t i = 0; i < segment.size; i++) { unsigned char c = segment.data[i]; switch (c) { @@ -1140,7 +1140,7 @@ public: } o << "\")"; } - o << ")\n"; + o << (module.memory.segments.size() > 0 ? "\n " : "") << ")\n"; for (auto& curr : module.functionTypes) { doIndent(o, indent); curr->print(o, indent, true); |