py2llvm: run passes before creating EE

This commit is contained in:
Sebastien Bourdeauducq 2014-09-07 14:47:09 +08:00
parent 15dcf3351b
commit dddc9259b0
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class Module:
pass_manager.run(self.llvm_module) pass_manager.run(self.llvm_module)
def get_ee(self): def get_ee(self):
self.finalize()
return le.ExecutionEngine.new(self.llvm_module) return le.ExecutionEngine.new(self.llvm_module)
def emit_object(self): def emit_object(self):