diff options
Diffstat (limited to 'src/asm2wasm-main.cpp')
-rw-r--r-- | src/asm2wasm-main.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/asm2wasm-main.cpp b/src/asm2wasm-main.cpp index 7c4d93052..1e9dc6680 100644 --- a/src/asm2wasm-main.cpp +++ b/src/asm2wasm-main.cpp @@ -27,24 +27,8 @@ int main(int argc, char **argv) { fclose(f); input[num] = 0; - // emcc --separate-asm modules look like - // - // Module["asm"] = (function(global, env, buffer) { - // .. - // }); - // - // we need to clean that up. - if (*input == 'M') { - while (*input != 'f') { - input++; - num--; - } - char *end = input + num - 1; - while (*end != '}') { - *end = 0; - end--; - } - } + Asm2WasmPreProcessor pre; + input = pre.process(input); if (debug) std::cerr << "parsing...\n"; cashew::Parser<Ref, DotZeroValueBuilder> builder; |