From 707637bd2ee5b3297905d33ed0d3dc46866aa3f4 Mon Sep 17 00:00:00 2001
From: Per Lindgren <per.lindgren@ltu.se>
Date: Thu, 10 Oct 2019 23:41:16 +0200
Subject: [PATCH] Code generation for basic block

---
 examples/crust.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/crust.rs b/examples/crust.rs
index 7a408da..408d0c1 100644
--- a/examples/crust.rs
+++ b/examples/crust.rs
@@ -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]
-- 
GitLab