This commit is contained in:
Sébastien Bourdeauducq 2024-09-11 15:32:32 +08:00
parent dbb88ad79d
commit 03d10a1907
1 changed files with 0 additions and 1 deletions

View File

@ -185,7 +185,6 @@ fn compile(code: &String, run_symbol: &String, output_filename: &Path) -> Result
// Private all functions except "run"
let mut function_iter = main.get_first_function();
while let Some(func) = function_iter {
println!("{}", func.get_name().to_str().unwrap());
if func.count_basic_blocks() > 0 && func.get_name().to_str().unwrap() != run_symbol {
func.set_linkage(inkwell::module::Linkage::Private);
}