Remove IterToList, llvm_extra.h.

Add CustomMethod.
This commit is contained in:
Siu Kwan Lam 2013-01-28 15:53:01 -06:00
commit af7962a2ca
7 changed files with 61 additions and 64 deletions

View file

@ -3,4 +3,5 @@ from namespace import llvm
@llvm.Class()
class SmallVector_Type:
_realname_ = 'SmallVector<llvm::Type*,8>'
delete = Destructor()

View file

@ -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))