Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libasr
Submodule libasr updated 497 files
4 changes: 0 additions & 4 deletions src/bin/lpython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,6 @@ int main(int argc, char *argv[])
// app.add_option("-J", arg_J, "Where to save mod files");
app.add_flag("--jit", to_jit, "Execute the program using just-in-time (JIT) compiler");
app.add_flag("-g", compiler_options.emit_debug_info, "Compile with debugging information");
app.add_flag("--debug-with-line-column", compiler_options.emit_debug_line_column,
"Convert the linear location info into line + column in the debugging information");
// app.add_option("-D", compiler_options.c_preprocessor_defines, "Define <macro>=<value> (or 1 if <value> omitted)")->allow_extra_args(false);
app.add_flag("--version", arg_version, "Display compiler version information");

Expand Down Expand Up @@ -2085,7 +2083,6 @@ int main(int argc, char *argv[])
lpython_pass_manager.parse_pass_arg(arg_pass, skip_pass);
lpython_pass_manager.use_default_passes();
compiler_options.po.disable_main = true;
compiler_options.emit_debug_line_column = false;
compiler_options.separate_compilation = false;
return interactive_python_repl(lpython_pass_manager, compiler_options, arg_v);
#else
Expand Down Expand Up @@ -2225,7 +2222,6 @@ int main(int argc, char *argv[])
return 1;
}
compiler_options.emit_debug_info = false;
compiler_options.emit_debug_line_column = false;
compiler_options.separate_compilation = false;
return compile_python_using_llvm(arg_file, "", runtime_library_dir,
lpython_pass_manager, compiler_options, time_report, false, true);
Expand Down
13 changes: 0 additions & 13 deletions src/lpython/python_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,19 +445,6 @@ Result<std::unique_ptr<LLVMModule>> PythonCompiler::get_llvm3(
)
{
#ifdef HAVE_LFORTRAN_LLVM
if (compiler_options.emit_debug_info) {
if (!compiler_options.emit_debug_line_column) {
diagnostics.add(LCompilers::diag::Diagnostic(
"The `emit_debug_line_column` is not enabled; please use the "
"`--debug-with-line-column` option to get the correct "
"location information",
LCompilers::diag::Level::Error,
LCompilers::diag::Stage::Semantic, {})
);
Error err;
return err;
}
}
// ASR -> LLVM
std::unique_ptr<LCompilers::LLVMModule> m;
Result<std::unique_ptr<LCompilers::LLVMModule>> res
Expand Down
1 change: 0 additions & 1 deletion src/lpython/python_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ namespace LCompilers::LPython {
custom_interpreter() : e{CompilerOptions()} {
e.compiler_options.interactive = true;
e.compiler_options.po.disable_main = true;
e.compiler_options.emit_debug_line_column = false;
e.compiler_options.separate_compilation = false;
}
virtual ~custom_interpreter() = default;
Expand Down
35 changes: 0 additions & 35 deletions src/lpython/tests/test_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@ define float @f()
TEST_CASE("PythonCompiler 1") {
CompilerOptions cu;
cu.po.disable_main = true;
cu.emit_debug_line_column = false;
cu.separate_compilation = false;
cu.interactive = true;
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand All @@ -627,7 +626,6 @@ TEST_CASE("PythonCompiler 1") {
// TEST_CASE("PythonCompiler 2") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand All @@ -646,7 +644,6 @@ TEST_CASE("PythonCompiler 1") {
TEST_CASE("PythonCompiler i32 expressions") {
CompilerOptions cu;
cu.po.disable_main = true;
cu.emit_debug_line_column = false;
cu.separate_compilation = false;
cu.interactive = true;
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -692,7 +689,6 @@ TEST_CASE("PythonCompiler i32 expressions") {
// TEST_CASE("PythonCompiler i32 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -727,7 +723,6 @@ TEST_CASE("PythonCompiler i32 expressions") {
TEST_CASE("PythonCompiler i64 expressions") {
CompilerOptions cu;
cu.po.disable_main = true;
cu.emit_debug_line_column = false;
cu.separate_compilation = false;
cu.interactive = true;
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -773,7 +768,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler i64 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -808,7 +802,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u32 expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -854,7 +847,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u32 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -890,7 +882,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u64 expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -936,7 +927,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u64 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -971,7 +961,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler i8 expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1017,7 +1006,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler i8 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1052,7 +1040,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u8 expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1098,7 +1085,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u8 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1133,7 +1119,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler i16 expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1179,7 +1164,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler i16 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1214,7 +1198,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u16 expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1260,7 +1243,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler u16 declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1295,7 +1277,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler boolean expressions") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1326,7 +1307,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler boolean declaration") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1366,7 +1346,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler string 1") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand All @@ -1387,7 +1366,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler string 2") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1421,7 +1399,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler string 3") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1453,7 +1430,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler Array 1") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand All @@ -1470,7 +1446,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler lists") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1509,7 +1484,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler tuples") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1556,7 +1530,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler classes") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1663,7 +1636,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler underscore 1") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1694,7 +1666,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler underscore 2") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1743,7 +1714,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler underscore 3") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1776,7 +1746,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler underscore 4") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1809,7 +1778,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler asr verify 1") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand All @@ -1828,7 +1796,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
// TEST_CASE("PythonCompiler asr verify 2") {
// CompilerOptions cu;
// cu.po.disable_main = true;
// cu.emit_debug_line_column = false;
// cu.separate_compilation = false;
// cu.interactive = true;
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand All @@ -1855,7 +1822,6 @@ TEST_CASE("PythonCompiler i64 expressions") {
TEST_CASE("PythonCompiler asr verify 3") {
CompilerOptions cu;
cu.po.disable_main = true;
cu.emit_debug_line_column = false;
cu.separate_compilation = false;
cu.interactive = true;
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down Expand Up @@ -1887,7 +1853,6 @@ def subi(x: i32, y: i32) -> i32:
TEST_CASE("PythonCompiler asr verify 4") {
CompilerOptions cu;
cu.po.disable_main = true;
cu.emit_debug_line_column = false;
cu.separate_compilation = false;
cu.interactive = true;
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-print_02-afbe092.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-print_02-afbe092.stdout",
"stdout_hash": "81b28e9c321e4c2f5c4979702be9155fdb7a0bbe0044b34470a55926",
"stdout_hash": "fc8a85b6bc8901fcbbd9bccf807cf6927c9cb26760942c2db6c55491",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
Loading
Loading