[checkpoint] Start the switch to type inference.

This commit is contained in:
2023-06-19 21:16:28 -07:00
parent b931ba5b17
commit 3687785540
10 changed files with 424 additions and 284 deletions

View File

@@ -1,5 +1,4 @@
use crate::backend::Backend;
use crate::ir::Program as IR;
use crate::syntax::Program as Syntax;
use codespan_reporting::{
diagnostic::Diagnostic,
@@ -101,7 +100,7 @@ impl Compiler {
}
// Now that we've validated it, turn it into IR.
let ir = IR::from(syntax);
let ir = syntax.type_infer();
// Finally, send all this to Cranelift for conversion into an object file.
let mut backend = Backend::object_file(Triple::host())?;