does not throw property for Function (Andrew Straw)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@79 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
d0e4e09a5d
commit
6cb58c97d7
5 changed files with 33 additions and 1 deletions
|
|
@ -365,6 +365,22 @@ LLVMValueRef LLVMUserGetOperand(LLVMValueRef user, unsigned idx)
|
|||
return llvm::wrap(operand);
|
||||
}
|
||||
|
||||
unsigned LLVMGetDoesNotThrow(LLVMValueRef fn)
|
||||
{
|
||||
llvm::Function *fnp = llvm::unwrap<llvm::Function>(fn);
|
||||
assert(fnp);
|
||||
|
||||
return fnp->doesNotThrow();
|
||||
}
|
||||
|
||||
void LLVMSetDoesNotThrow(LLVMValueRef fn, int DoesNotThrow)
|
||||
{
|
||||
llvm::Function *fnp = llvm::unwrap<llvm::Function>(fn);
|
||||
assert(fnp);
|
||||
|
||||
return fnp->setDoesNotThrow((bool)DoesNotThrow);
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMGetIntrinsic(LLVMModuleRef module, int id,
|
||||
LLVMTypeRef *types, unsigned n_types)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue