Add isLayoutIdentical
This commit is contained in:
parent
22b5d4695c
commit
0b1abe7b26
3 changed files with 18 additions and 0 deletions
|
|
@ -895,6 +895,10 @@ class StructType(Type):
|
|||
def is_opaque(self):
|
||||
return self._ptr.isOpaque()
|
||||
|
||||
def is_layout_identical(self, other):
|
||||
return self._ptr.isLayoutIdentical(other._ptr)
|
||||
|
||||
|
||||
class ArrayType(Type):
|
||||
"""Represents an array type."""
|
||||
_type_ = api.llvm.ArrayType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue