2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

Verify LLVM module in compiler.textbench.jit.

This commit is contained in:
whitequark 2015-07-23 07:57:35 +03:00
parent 9db199cad9
commit 2b9ac344d8

View File

@ -23,6 +23,7 @@ def main():
lltarget = llvm.Target.from_default_triple()
llmachine = lltarget.create_target_machine()
llparsedmod = llvm.parse_assembly(str(llmod))
llparsedmod.verify()
lljit = llvm.create_mcjit_compiler(llparsedmod, llmachine)
lljit.finalize_object()
llmain = lljit.get_pointer_to_global(llparsedmod.get_function(llmod.name + ".__modinit__"))