Removed cyclic dependency _util <-> core. Added testcases. Passes in _core.c. Code cleanup.

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@32 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2008-08-11 17:11:57 +00:00
commit 4ee007190c
7 changed files with 293 additions and 92 deletions

View file

@ -10,7 +10,7 @@ VERSION = '0.3'
#===----------------------------------------------------------------------===
class LLVMException(Exception):
"""Generic LLVM exception."""
"""Generic LLVM exception."""
def __init__(self, msg=""):
Exception.__init__(self, msg)
@ -21,13 +21,13 @@ class LLVMException(Exception):
#===----------------------------------------------------------------------===
class Ownable(object):
"""Objects that can be owned.
"""Objects that can be owned.
Modules and Module Providers can be owned, i.e., the responsibility of
Modules and Module Providers can be owned, i.e., the responsibility of
destruction of ownable objects can be handed over to other objects. The
llvm.Ownable class represents objects that can be so owned. This class
is NOT intended for public use.
"""
llvm.Ownable class represents objects that can be so owned. This class
is NOT intended for public use.
"""
def __init__(self, ptr, del_fn):
self.ptr = ptr