File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141
4242namespace wasm {
4343
44+ static Name WASI_UNSTABLE (" wasi_unstable" );
45+
4446struct 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 };
Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ extern Name EXIT;
6565extern Name SHARED;
6666extern Name EVENT;
6767extern Name ATTR;
68- extern Name WASI;
69- extern Name WASI_UNSTABLE;
7068
7169} // namespace wasm
7270
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ Name EXIT("exit");
8888Name SHARED (" shared" );
8989Name EVENT (" event" );
9090Name ATTR (" attr" );
91- Name WASI (" wasi" );
92- Name WASI_UNSTABLE (" wasi_unstable" );
9391
9492// Expressions
9593
You can’t perform that action at this time.
0 commit comments