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
|
|
@ -1286,6 +1286,11 @@ class Function(GlobalValue):
|
|||
def _set_coll(self, value): _core.LLVMSetGC(self.ptr, value)
|
||||
collector = property(_get_coll, _set_coll)
|
||||
|
||||
# the nounwind attribute:
|
||||
def _get_does_not_throw(self): return _core.LLVMGetDoesNotThrow(self.ptr)
|
||||
def _set_does_not_throw(self,value): _core.LLVMSetDoesNotThrow(self.ptr, value)
|
||||
does_not_throw = property(_get_does_not_throw, _set_does_not_throw)
|
||||
|
||||
@property
|
||||
def args(self):
|
||||
return _util.wrapiter(_core.LLVMGetFirstParam,
|
||||
|
|
@ -1324,7 +1329,6 @@ class Function(GlobalValue):
|
|||
# failure, it appears to print result to stderr and abort.
|
||||
return _core.LLVMVerifyFunction(self.ptr) != 0
|
||||
|
||||
|
||||
#===----------------------------------------------------------------------===
|
||||
# Instruction
|
||||
#===----------------------------------------------------------------------===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue