Skip to content
Snippets Groups Projects
Commit 707637bd authored by Per Lindgren's avatar Per Lindgren
Browse files

Code generation for basic block

parent 2926fcb8
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ fn main() -> Result<(), Box<dyn Error>> {
Ok(())
}
/// Compiler holds the LLVM state for the compilation
pub struct Compiler<'a> {
pub context: &'a Context,
pub builder: &'a Builder,
......@@ -79,6 +80,7 @@ pub struct Compiler<'a> {
fn_value_opt: Option<FunctionValue>,
}
/// Compilation assumes the program to be semantically correct (well formed)
impl<'a> Compiler<'a> {
/// Gets a defined function given its name.
#[inline]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment