Implement property CallOrInvokeInstruction.called_function

Also add a testcase.
This commit is contained in:
Wladimir J. van der Laan 2012-09-02 13:22:00 +02:00
commit 5bd4991f0b
5 changed files with 20 additions and 1 deletions

View file

@ -645,7 +645,7 @@ _wrap_objintenum2none(LLVMRemoveInstrAttribute, LLVMValueRef, LLVMAttribute)
_wrap_objintint2none(LLVMSetInstrParamAlignment, LLVMValueRef)
_wrap_obj2obj(LLVMIsTailCall, LLVMValueRef, int)
_wrap_objint2none(LLVMSetTailCall, LLVMValueRef)
_wrap_obj2obj(LLVMInstGetCalledFunction, LLVMValueRef, LLVMValueRef)
/*===-- PHI Nodes --------------------------------------------------------===*/
@ -1716,6 +1716,7 @@ static PyMethodDef core_methods[] = {
_method( LLVMAddInstrAttribute )
_method( LLVMRemoveInstrAttribute )
_method( LLVMSetInstrParamAlignment )
_method( LLVMInstGetCalledFunction )
/* PHI Nodes */
_method( LLVMAddIncoming1 )