Added PassManagerBuilder.

Updated test/passes.py for PassManagerBuilder.
This commit is contained in:
Siu Kwan Lam 2012-07-24 23:42:28 -07:00
commit 6a02c36f04
8 changed files with 318 additions and 19 deletions

View file

@ -620,11 +620,7 @@ class Type(object):
@staticmethod
def __struct(element_tys, packed, name):
elems = unpack_types(element_tys)
if packed:
packed=1
else:
packed=0
packed = int(bool(packed))
if name: # create Identified StructType
objptr = _core.LLVMStructTypeIdentified(name)