Removed the deprecated ModuleProvider class

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@88 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2010-07-26 16:36:02 +00:00
commit b7200e59b1
11 changed files with 87 additions and 152 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
from llvm.core import Module,Type,Builder,ModuleProvider
from llvm.core import Module,Type,Builder
from llvm.ee import ExecutionEngine
import llvm.core
import ctypes
@ -45,8 +45,7 @@ def test_jit_ctypes():
print my_module
# compile the function
mp = ModuleProvider.new(my_module)
ee = ExecutionEngine.new(mp)
ee = ExecutionEngine.new(my_module)
# let ctypes know about the function
func_ptr_int = ee.get_pointer_to_function( mult )