Add lli support for running example test cases #327

Merged
sb10q merged 7 commits from lli-support into master 2023-09-30 09:31:18 +08:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit a0c206dc8d - Show all commits

View File

@ -354,7 +354,12 @@ fn main() {
main.link_in_module(other).unwrap();
}
main.link_in_module(load_irrt(&context)).unwrap();
let irrt = load_irrt(&context);
if emit_llvm {
irrt.write_bitcode_to_path(Path::new("irrt.bc"));
}
main.link_in_module(irrt).unwrap();
let mut function_iter = main.get_first_function();
while let Some(func) = function_iter {