File tree 2 files changed +9
-13
lines changed 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,8 @@ RUN(NAME test_dict_03 LABELS cpython llvm)
197
197
RUN(NAME test_dict_04 LABELS cpython llvm)
198
198
RUN(NAME test_dict_05 LABELS cpython llvm)
199
199
RUN(NAME test_for_loop LABELS cpython llvm c)
200
- RUN(NAME modules_01 LABELS cpython llvm)
201
- RUN(NAME modules_02 LABELS cpython llvm)
200
+ RUN(NAME modules_01 LABELS cpython llvm wasm )
201
+ RUN(NAME modules_02 LABELS cpython llvm wasm )
202
202
RUN(NAME test_import_01 LABELS cpython llvm)
203
203
RUN(NAME test_math LABELS cpython llvm)
204
204
RUN(NAME test_numpy_01 LABELS cpython llvm c)
Original file line number Diff line number Diff line change @@ -264,13 +264,11 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
264
264
for (auto &item : build_order) {
265
265
LFORTRAN_ASSERT (x.m_global_scope ->get_scope ().find (item) !=
266
266
x.m_global_scope ->get_scope ().end ());
267
- if (startswith (item, " lfortran_intrinsic" )) {
268
- ASR::symbol_t *mod = x.m_global_scope ->get_symbol (item);
269
- if (ASR::is_a<ASR::Module_t>(*mod)) {
270
- ASR::Module_t *m =
271
- ASR::down_cast<ASR::Module_t>(mod);
272
- declare_all_functions (*(m->m_symtab ));
273
- }
267
+ ASR::symbol_t *mod = x.m_global_scope ->get_symbol (item);
268
+ if (ASR::is_a<ASR::Module_t>(*mod)) {
269
+ ASR::Module_t *m =
270
+ ASR::down_cast<ASR::Module_t>(mod);
271
+ declare_all_functions (*(m->m_symtab ));
274
272
}
275
273
}
276
274
@@ -296,10 +294,8 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
296
294
for (auto &item : build_order) {
297
295
LFORTRAN_ASSERT (x.m_global_scope ->get_scope ().find (item) !=
298
296
x.m_global_scope ->get_scope ().end ());
299
- if (startswith (item, " lfortran_intrinsic" )) {
300
- ASR::symbol_t *mod = x.m_global_scope ->get_symbol (item);
301
- this ->visit_symbol (*mod);
302
- }
297
+ ASR::symbol_t *mod = x.m_global_scope ->get_symbol (item);
298
+ this ->visit_symbol (*mod);
303
299
}
304
300
}
305
301
You can’t perform that action at this time.
0 commit comments