cleanup
This commit is contained in:
parent
dbb88ad79d
commit
03d10a1907
|
@ -185,7 +185,6 @@ fn compile(code: &String, run_symbol: &String, output_filename: &Path) -> Result
|
||||||
// Private all functions except "run"
|
// Private all functions except "run"
|
||||||
let mut function_iter = main.get_first_function();
|
let mut function_iter = main.get_first_function();
|
||||||
while let Some(func) = function_iter {
|
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 {
|
if func.count_basic_blocks() > 0 && func.get_name().to_str().unwrap() != run_symbol {
|
||||||
func.set_linkage(inkwell::module::Linkage::Private);
|
func.set_linkage(inkwell::module::Linkage::Private);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue