summaryrefslogtreecommitdiff
path: root/main.hs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-26 18:27:47 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-26 18:27:47 +0100
commit3683460c575ce038b2cb3fa00b59dc3ff312d756 (patch)
tree86d88719c6b15f2c2595fb697164c9674c0f5520 /main.hs
parentb3fd29bb7648f8a3c3b8a20345d53a49df4a0947 (diff)
Handle returns (this segfaults llvm-general...)
Diffstat (limited to 'main.hs')
-rw-r--r--main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.hs b/main.hs
index ec5b050..3f3a81b 100644
--- a/main.hs
+++ b/main.hs
@@ -53,8 +53,11 @@ main = do
-- putStrLn "Module:"
-- print llvmMod
+ putStrLn "Calling withContext:"
General.withContext $ \context -> do
+ putStrLn "Calling withModuleFromAST:"
assert $ General.withModuleFromAST context llvmMod $ \genmod -> do
+ putStrLn "Calling moduleLLVMAssembly:"
llvmasm <- General.moduleLLVMAssembly genmod
putStr llvmasm
putStrLn ""