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

@ -412,6 +412,10 @@ unsigned LLVMInstGetOpcode(LLVMValueRef inst);
/* Wraps llvm::CmpInst::getPredicate(). */
unsigned LLVMCmpInstGetPredicate(LLVMValueRef cmpinst);
/* Wraps llvm::CallSite::getCalledFunction.
*/
LLVMValueRef LLVMInstGetCalledFunction(LLVMValueRef inst);
/* Wraps llvm::ParseAssemblyString(). Returns a module reference or NULL (with
* `out' pointing to an error message). Dispose error message after use, via
* LLVMDisposeMessage(). */