Generate the module inside the repl
authorLuke Lau <luke_lau@icloud.com>
Sun, 2 Jun 2019 16:28:31 +0000 (17:28 +0100)
committerLuke Lau <luke_lau@icloud.com>
Sun, 2 Jun 2019 16:28:31 +0000 (17:28 +0100)
The Kaleidoscope tutorial acts as a repl where each top-level expression
is evaluated when you enter it. Currently we were building up the
llvm-hs-pure AST inside our REPL, and then converting it to an actual
LLVM IR module in main when we called buildModuleT.

In order to do this line-by-line JITing, we'll need the actual LLVM
module when we enter the line. This will prepare us for the craziness
that will come in the following commits


No differences found