Added PassManagerBuilder.
Updated test/passes.py for PassManagerBuilder.
This commit is contained in:
parent
99c7a0736e
commit
6a02c36f04
8 changed files with 318 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue