summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/MinifyImportsAndExports.cpp5
-rw-r--r--src/shared-constants.h2
-rw-r--r--src/wasm/wasm.cpp2
3 files changed, 3 insertions, 6 deletions
diff --git a/src/passes/MinifyImportsAndExports.cpp b/src/passes/MinifyImportsAndExports.cpp
index 0edc85dc7..ec582a64e 100644
--- a/src/passes/MinifyImportsAndExports.cpp
+++ b/src/passes/MinifyImportsAndExports.cpp
@@ -41,6 +41,8 @@
namespace wasm {
+static Name WASI_UNSTABLE("wasi_unstable");
+
struct MinifyImportsAndExports : public Pass {
bool minifyExports;
@@ -160,8 +162,7 @@ private:
}
};
auto processImport = [&](Importable* curr) {
- if (curr->module == ENV || curr->module == WASI ||
- curr->module == WASI_UNSTABLE) {
+ if (curr->module == ENV || curr->module == WASI_UNSTABLE) {
process(curr->base);
}
};
diff --git a/src/shared-constants.h b/src/shared-constants.h
index 929b173cb..4f64f1cf6 100644
--- a/src/shared-constants.h
+++ b/src/shared-constants.h
@@ -65,8 +65,6 @@ extern Name EXIT;
extern Name SHARED;
extern Name EVENT;
extern Name ATTR;
-extern Name WASI;
-extern Name WASI_UNSTABLE;
} // namespace wasm
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index a0b845446..ec23b5c94 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -88,8 +88,6 @@ Name EXIT("exit");
Name SHARED("shared");
Name EVENT("event");
Name ATTR("attr");
-Name WASI("wasi");
-Name WASI_UNSTABLE("wasi_unstable");
// Expressions