summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-io.cpp')
-rw-r--r--src/wasm/wasm-io.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/wasm/wasm-io.cpp b/src/wasm/wasm-io.cpp
index 10b84bb4d..149216e1a 100644
--- a/src/wasm/wasm-io.cpp
+++ b/src/wasm/wasm-io.cpp
@@ -29,24 +29,15 @@
#include "support/debug.h"
#include "support/path.h"
#include "wasm-binary.h"
-#include "wasm-s-parser.h"
namespace wasm {
-bool useNewWATParser = true;
-
#define DEBUG_TYPE "writer"
static void readTextData(std::string& input, Module& wasm, IRProfile profile) {
- if (useNewWATParser) {
- if (auto parsed = WATParser::parseModule(wasm, input);
- auto err = parsed.getErr()) {
- Fatal() << err->msg;
- }
- } else {
- SExpressionParser parser(const_cast<char*>(input.c_str()));
- Element& root = *parser.root;
- SExpressionWasmBuilder builder(wasm, *root[0], profile);
+ if (auto parsed = WATParser::parseModule(wasm, input);
+ auto err = parsed.getErr()) {
+ Fatal() << err->msg;
}
}