Remove IterToList, llvm_extra.h.
Add CustomMethod.
This commit is contained in:
parent
d939728938
commit
af7962a2ca
7 changed files with 61 additions and 64 deletions
|
|
@ -3,4 +3,5 @@ from namespace import llvm
|
|||
|
||||
@llvm.Class()
|
||||
class SmallVector_Type:
|
||||
_realname_ = 'SmallVector<llvm::Type*,8>'
|
||||
delete = Destructor()
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@ class Value:
|
|||
|
||||
replaceAllUsesWith = Method(Void, ptr(Value))
|
||||
|
||||
list_use = IterToList(ptr(User), (), 'llvm::Value::use_iterator',
|
||||
'use_begin', 'use_end')
|
||||
list_use = CustomMethod('Value_use_iterator_to_list', PyObjectPtr)
|
||||
|
||||
hasOneUse = Method(cast(Bool, bool))
|
||||
hasNUses = Method(cast(Bool, bool), cast(int, Unsigned))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue