Update old API to use the new binding.

Have not run the testsuite yet.
This commit is contained in:
Siu Kwan Lam 2013-02-11 18:15:22 -06:00
commit a97b26415e
4 changed files with 739 additions and 0 deletions

View file

@ -1,5 +1,6 @@
class Wrapper(object):
def __init__(self, ptr):
assert ptr
self.__ptr = ptr
@property
@ -9,3 +10,6 @@ class Wrapper(object):
def _extract_ptrs(objs):
return [x._ptr for x in objs]
class LLVMException(Exception):
pass