diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 18:01:09 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 18:01:09 -0800 |
commit | 8ba70395b294b8525f52c511054ca95eef1f2686 (patch) | |
tree | 87dd08760a0ce96abf84bcabfab98d88cb94d4f5 /src/wasm.h | |
parent | 8272166eb79bfff9e7aab73af125085ea7198b46 (diff) | |
download | binaryen-8ba70395b294b8525f52c511054ca95eef1f2686.tar.gz binaryen-8ba70395b294b8525f52c511054ca95eef1f2686.tar.bz2 binaryen-8ba70395b294b8525f52c511054ca95eef1f2686.zip |
write segments into memory, and parse all lines of functions
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index 998c0bd50..a91a1bd7f 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -803,7 +803,8 @@ public: struct Segment { size_t offset; const char* data; - Segment(size_t offset, const char *data) : offset(offset), data(data) {} + size_t size; + Segment(size_t offset, const char *data, size_t size) : offset(offset), data(data), size(size) {} }; size_t initial, max; |