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:
mdevan.foobar 2009-09-20 09:25:14 +00:00
commit 6cb58c97d7
5 changed files with 33 additions and 1 deletions

View file

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