xo-pyjit: fix: MachPipeline::codegen_toplevel() instead of codegen()
This commit is contained in:
parent
6f4f06f1b1
commit
a0d748ef9f
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ namespace xo {
|
|||
py::doc("write to console with state of all jit-owned dynamic libraries"))
|
||||
.def("codegen",
|
||||
[](MachPipeline & jit, const rp<Expression> & expr) {
|
||||
return jit.codegen(expr.borrow());
|
||||
return jit.codegen_toplevel(expr.borrow());
|
||||
},
|
||||
py::arg("x"),
|
||||
py::doc("generate llvm (IR) code for Expression x"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue