forked from M-Labs/artiq
1
0
Fork 0

compiler.testbench.llvmgen: fix.

This commit is contained in:
whitequark 2015-12-10 23:08:05 +08:00
parent 4888e897b9
commit 64f19b84f2
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ def main():
# Add main so that the result can be executed with lli
llmain = ll.Function(llmod, ll.FunctionType(ll.VoidType(), []), "main")
llbuilder = ll.IRBuilder(llmain.append_basic_block("entry"))
llbuilder.call(llmod.get_global(llmod.name + ".__modinit__"), [])
llbuilder.call(llmod.get_global(llmod.name + ".__modinit__"), [
ll.Constant(ll.IntType(8).as_pointer(), None)])
llbuilder.ret_void()
print(llmod)