Skip to content

Commit 86507ab

Browse files
kripkensbc100
authored andcommitted
Wasi followups to #2323 (#2329)
Remove wasi, as only wasi_unstable makes sense. Also remove shared constant for wasi as we don't know yet if it'll be needed later.
1 parent 0faa68b commit 86507ab

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/passes/MinifyImportsAndExports.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
namespace wasm {
4343

44+
static Name WASI_UNSTABLE("wasi_unstable");
45+
4446
struct MinifyImportsAndExports : public Pass {
4547
bool minifyExports;
4648

@@ -160,8 +162,7 @@ struct MinifyImportsAndExports : public Pass {
160162
}
161163
};
162164
auto processImport = [&](Importable* curr) {
163-
if (curr->module == ENV || curr->module == WASI ||
164-
curr->module == WASI_UNSTABLE) {
165+
if (curr->module == ENV || curr->module == WASI_UNSTABLE) {
165166
process(curr->base);
166167
}
167168
};

src/shared-constants.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ extern Name EXIT;
6565
extern Name SHARED;
6666
extern Name EVENT;
6767
extern Name ATTR;
68-
extern Name WASI;
69-
extern Name WASI_UNSTABLE;
7068

7169
} // namespace wasm
7270

src/wasm/wasm.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ Name EXIT("exit");
8888
Name SHARED("shared");
8989
Name EVENT("event");
9090
Name ATTR("attr");
91-
Name WASI("wasi");
92-
Name WASI_UNSTABLE("wasi_unstable");
9391

9492
// Expressions
9593

0 commit comments

Comments
 (0)