Skip to content

Commit 7b2b271

Browse files
committed
fix
1 parent 3a0a504 commit 7b2b271

File tree

5 files changed

+2
-11
lines changed

5 files changed

+2
-11
lines changed

src/libasr/codegen/asr_to_c.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <libasr/string_utils.h>
1111
#include <libasr/pass/unused_functions.h>
1212
#include <libasr/pass/class_constructor.h>
13-
#include <libasr/pass/pass_manager.h>
1413

1514
#include <map>
1615
#include <utility>

src/libasr/codegen/asr_to_cpp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <libasr/asr_utils.h>
1010
#include <libasr/string_utils.h>
1111
#include <libasr/pass/unused_functions.h>
12-
#include <libasr/pass/pass_manager.h>
1312

1413

1514
namespace LFortran {

src/libasr/codegen/asr_to_wasm.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#include <libasr/pass/do_loops.h>
1212
#include <libasr/pass/unused_functions.h>
1313
#include <libasr/pass/arr_dims_propagate.h>
14+
#include <libasr/pass/pass_array_by_data.h>
1415
#include <libasr/exception.h>
1516
#include <libasr/asr_utils.h>
16-
#include <libasr/pass/pass_manager.h>
1717

1818
// #include <lfortran/pickle.h>
1919

@@ -1534,7 +1534,6 @@ Result<Vec<uint8_t>> asr_to_wasm_bytes_stream(ASR::TranslationUnit_t &asr, Alloc
15341534
Vec<uint8_t> wasm_bytes;
15351535

15361536
LCompilers::PassOptions pass_options;
1537-
LCompilers::set_runtime_library_dir(pass_options);
15381537
pass_replace_do_loops(al, asr, pass_options);
15391538
pass_array_by_data(al, asr, pass_options);
15401539
pass_options.always_run = true;

src/libasr/codegen/asr_to_x86.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <libasr/pass/global_stmts.h>
1111
#include <libasr/exception.h>
1212
#include <libasr/asr_utils.h>
13-
#include <libasr/pass/pass_manager.h>
1413

1514

1615
namespace LFortran {
@@ -534,7 +533,6 @@ Result<int> asr_to_x86(ASR::TranslationUnit_t &asr, Allocator &al,
534533
ASRToX86Visitor v(al);
535534

536535
LCompilers::PassOptions pass_options;
537-
LCompilers::set_runtime_library_dir(pass_options);
538536
pass_options.run_fun = "f";
539537

540538
{

src/libasr/pass/pass_manager.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ namespace LCompilers {
5252
array_dim_intrinsics_update, pass_array_by_data
5353
};
5454

55-
static inline void set_runtime_library_dir(PassOptions& pass_options) {
56-
pass_options.runtime_library_dir = LFortran::get_runtime_library_dir();
57-
}
58-
5955
class PassManager {
6056
private:
6157

@@ -90,7 +86,7 @@ namespace LCompilers {
9086

9187
void _apply_passes(Allocator& al, LFortran::ASR::TranslationUnit_t* asr,
9288
std::vector<ASRPass>& passes, PassOptions pass_options) {
93-
set_runtime_library_dir(pass_options);
89+
pass_options.runtime_library_dir = LFortran::get_runtime_library_dir();
9490
for (size_t i = 0; i < passes.size(); i++) {
9591
switch (passes[i]) {
9692
case (ASRPass::do_loops) : {

0 commit comments

Comments
 (0)