summaryrefslogtreecommitdiff
path: root/src/passes/RemoveNonJSOps.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-09-09 13:01:21 -0700
committerGitHub <noreply@github.com>2020-09-09 13:01:21 -0700
commit2aa0cf300998c62aea8cc6698f8325653a9f0895 (patch)
tree2116bc18fd58514589821858c528951e76c5178b /src/passes/RemoveNonJSOps.cpp
parent41ea543093ed734c73e5202c58c899be447b3223 (diff)
downloadbinaryen-2aa0cf300998c62aea8cc6698f8325653a9f0895.tar.gz
binaryen-2aa0cf300998c62aea8cc6698f8325653a9f0895.tar.bz2
binaryen-2aa0cf300998c62aea8cc6698f8325653a9f0895.zip
Poppy IR wast parsing and validation (#3105)
Adds an IR profile to each function so the validator can determine which validation rules to apply and adds a flag to have the wast parser set the profile to Poppy for testing purposes.
Diffstat (limited to 'src/passes/RemoveNonJSOps.cpp')
-rw-r--r--src/passes/RemoveNonJSOps.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/RemoveNonJSOps.cpp b/src/passes/RemoveNonJSOps.cpp
index e2054a5d2..abd3526c4 100644
--- a/src/passes/RemoveNonJSOps.cpp
+++ b/src/passes/RemoveNonJSOps.cpp
@@ -79,7 +79,8 @@ struct RemoveNonJSOpsPass : public WalkerPass<PostWalker<RemoveNonJSOpsPass>> {
std::string input(IntrinsicsModuleWast);
SExpressionParser parser(const_cast<char*>(input.c_str()));
Element& root = *parser.root;
- SExpressionWasmBuilder builder(intrinsicsModule, *root[0]);
+ SExpressionWasmBuilder builder(
+ intrinsicsModule, *root[0], IRProfile::Normal);
std::set<Name> neededFunctions;