diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-23 12:05:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-23 12:05:11 -0800 |
commit | dd48f32a130a4c45d7b2ca0df95f4a27cadd117e (patch) | |
tree | 422dd49879cb37e3d6e6be00f6b216a92406207f /src/s2wasm.h | |
parent | 253d42efc00510ce7a07e7ab05930ff93bd3c70d (diff) | |
download | binaryen-dd48f32a130a4c45d7b2ca0df95f4a27cadd117e.tar.gz binaryen-dd48f32a130a4c45d7b2ca0df95f4a27cadd117e.tar.bz2 binaryen-dd48f32a130a4c45d7b2ca0df95f4a27cadd117e.zip |
generalize commandline options and add global-base option for s2wasm
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index b732464d9..467f912bf 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -40,8 +40,8 @@ class S2WasmBuilder { bool debug; public: - S2WasmBuilder(AllocatingModule& wasm, const char* input, bool debug) - : wasm(wasm), allocator(wasm.allocator), debug(debug) { + S2WasmBuilder(AllocatingModule& wasm, const char* input, bool debug, size_t nextStatic) + : wasm(wasm), allocator(wasm.allocator), debug(debug), nextStatic(nextStatic) { s = input; scan(); s = input; @@ -52,7 +52,7 @@ public: private: // state - size_t nextStatic = 1; // location of next static allocation, i.e., the data segment + size_t nextStatic; // location of next static allocation, i.e., the data segment std::map<Name, int32_t> staticAddresses; // name => address struct Addressing { |