@@ -111,7 +111,7 @@ Result<PythonCompiler::EvalResult> PythonCompiler::evaluate(
111111 run_fn = module_name + " global_stmts_" + std::to_string (eval_count) + " __" ;
112112
113113 Result<std::unique_ptr<LLVMModule>> res3 = get_llvm3 (*asr,
114- pass_manager, diagnostics, lm.files .back ().in_filename );
114+ pass_manager, diagnostics, lm, lm .files .back ().in_filename );
115115 std::unique_ptr<LCompilers::LLVMModule> m;
116116 if (res3.ok ) {
117117 m = std::move (res3.result );
@@ -419,7 +419,7 @@ Result<std::unique_ptr<LLVMModule>> PythonCompiler::get_llvm2(
419419 return asr.error ;
420420 }
421421 Result<std::unique_ptr<LLVMModule>> res = get_llvm3 (*asr.result , pass_manager,
422- diagnostics, lm.files .back ().in_filename );
422+ diagnostics, lm, lm .files .back ().in_filename );
423423 if (res.ok ) {
424424#ifdef HAVE_LFORTRAN_LLVM
425425 std::unique_ptr<LLVMModule> m = std::move (res.result );
@@ -437,10 +437,10 @@ Result<std::unique_ptr<LLVMModule>> PythonCompiler::get_llvm2(
437437Result<std::unique_ptr<LLVMModule>> PythonCompiler::get_llvm3 (
438438#ifdef HAVE_LFORTRAN_LLVM
439439 ASR::TranslationUnit_t &asr, LCompilers::PassManager& lpm,
440- diag::Diagnostics &diagnostics, const std::string &infile
440+ diag::Diagnostics &diagnostics, LCompilers::LocationManager &lm, const std::string &infile
441441#else
442442 ASR::TranslationUnit_t &/* asr*/ , LCompilers::PassManager&/* lpm*/ ,
443- diag::Diagnostics &/* diagnostics*/ ,const std::string &/* infile*/
443+ diag::Diagnostics &/* diagnostics*/ , LCompilers::LocationManager & /* lm */ , const std::string &/* infile*/
444444#endif
445445 )
446446{
@@ -463,7 +463,7 @@ Result<std::unique_ptr<LLVMModule>> PythonCompiler::get_llvm3(
463463 Result<std::unique_ptr<LCompilers::LLVMModule>> res
464464 = asr_to_llvm (asr, diagnostics,
465465 e->get_context (), al, lpm, compiler_options,
466- run_fn, global_underscore_name, infile);
466+ run_fn, global_underscore_name, infile, lm );
467467 if (res.ok ) {
468468 m = std::move (res.result );
469469 } else {
0 commit comments