diff options
author | Sam Clegg <sbc@chromium.org> | 2023-11-08 10:28:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 18:28:10 +0000 |
commit | 784960180eac208a34eb33415267d977034971df (patch) | |
tree | 6b88bd5bc62bd4d5af5405fd52161a3a3aae1405 /test/lit/help | |
parent | 9627c8360d179c2cae168f8bca3bf1b7216c34a8 (diff) | |
download | binaryen-784960180eac208a34eb33415267d977034971df.tar.gz binaryen-784960180eac208a34eb33415267d977034971df.tar.bz2 binaryen-784960180eac208a34eb33415267d977034971df.zip |
Move --separate-data-segments into a pass so it can be run from wasm-opt (#6088)
Because we currently strip some data segments (i.e. EM_JS strings)
during `--post-emscripten` this is too late as `--separate-data-segments`
always runs in `wasm-emscripten-finalize`.
Once emscripten switches over to using the pass directly we can remove
the support from `wasm-emscripten-finalize`
Diffstat (limited to 'test/lit/help')
-rw-r--r-- | test/lit/help/wasm-opt.test | 3 | ||||
-rw-r--r-- | test/lit/help/wasm2js.test | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/lit/help/wasm-opt.test b/test/lit/help/wasm-opt.test index 4607a94b9..95d25cc61 100644 --- a/test/lit/help/wasm-opt.test +++ b/test/lit/help/wasm-opt.test @@ -395,6 +395,9 @@ ;; CHECK-NEXT: --safe-heap instrument loads and stores to ;; CHECK-NEXT: check for invalid behavior ;; CHECK-NEXT: +;; CHECK-NEXT: --separate-data-segments write data segments to a file +;; CHECK-NEXT: and strip them from the module +;; CHECK-NEXT: ;; CHECK-NEXT: --set-globals sets specified globals to ;; CHECK-NEXT: specified values ;; CHECK-NEXT: diff --git a/test/lit/help/wasm2js.test b/test/lit/help/wasm2js.test index 0b041ddd3..d3df47eb6 100644 --- a/test/lit/help/wasm2js.test +++ b/test/lit/help/wasm2js.test @@ -354,6 +354,9 @@ ;; CHECK-NEXT: --safe-heap instrument loads and stores to ;; CHECK-NEXT: check for invalid behavior ;; CHECK-NEXT: +;; CHECK-NEXT: --separate-data-segments write data segments to a file +;; CHECK-NEXT: and strip them from the module +;; CHECK-NEXT: ;; CHECK-NEXT: --set-globals sets specified globals to ;; CHECK-NEXT: specified values ;; CHECK-NEXT: |