summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-05-31 08:33:56 -0700
committerGitHub <noreply@github.com>2022-05-31 15:33:56 +0000
commit07d90673f1765c3ddff03f7748caefe9a7d14ffa (patch)
tree12b4c64b7b0c3b5024fdb81ef5cb9b04acc33751 /test
parent46282a482ec81e8d379b4e9b3ee50f66dd0ac5e5 (diff)
downloadbinaryen-07d90673f1765c3ddff03f7748caefe9a7d14ffa.tar.gz
binaryen-07d90673f1765c3ddff03f7748caefe9a7d14ffa.tar.bz2
binaryen-07d90673f1765c3ddff03f7748caefe9a7d14ffa.zip
wasm-emscripten-finalize: Improve detection of mainReadsParams (#4701)
The first way to should detect this is if the main function actually doesn't take any params. They we fallback to looking deeper. In preparation for https://reviews.llvm.org/D75277
Diffstat (limited to 'test')
-rw-r--r--test/lld/basic_safe_stack.wat.out2
-rw-r--r--test/lld/duplicate_imports.wat.out2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/lld/basic_safe_stack.wat.out b/test/lld/basic_safe_stack.wat.out
index 6e1b83712..9ed9eb221 100644
--- a/test/lld/basic_safe_stack.wat.out
+++ b/test/lld/basic_safe_stack.wat.out
@@ -107,7 +107,7 @@
},
"invokeFuncs": [
],
- "mainReadsParams": 1,
+ "mainReadsParams": 0,
"features": [
]
}
diff --git a/test/lld/duplicate_imports.wat.out b/test/lld/duplicate_imports.wat.out
index 38a08e50f..68f4d96a6 100644
--- a/test/lld/duplicate_imports.wat.out
+++ b/test/lld/duplicate_imports.wat.out
@@ -85,7 +85,7 @@
"invokeFuncs": [
"invoke_ffd"
],
- "mainReadsParams": 1,
+ "mainReadsParams": 0,
"features": [
]
}