Skip to content

Commit

Permalink
Fix bencher
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBrouwer committed Oct 30, 2023
1 parent 6809ead commit b132949
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bencher/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use clap::Parser;
use compiler::elf::ElfFile;
use compiler::interpreter::interpreter::IStats;
use compiler::interpreter::{TestIO, IO};
use compiler::passes::parse::parse::parse_program;
use compiler::passes::select::interpreter::IStats;
use compiler::utils::split_test::split_test_raw;
use git2::{Commit, Repository};
use mongodb::bson;
Expand Down Expand Up @@ -277,11 +276,8 @@ impl Stats {

let (_, interpreter_stats) = prg_concluded.interpret_with_stats(io);

let (entry, program) = prg_concluded.emit();

let elf = ElfFile::new(entry, &program);
let mut file = File::create(&output).unwrap();
elf.write(&mut file);
prg_concluded.emit().write(&mut file);

let bencher_stats = BStats::new(&output);

Expand Down

0 comments on commit b132949

Please sign in to comment.