Use extract_value instead of getresult (Bryan Silverthorn) (Issue #34)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@103 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
bb2d613e39
commit
ae61530aff
2 changed files with 7 additions and 4 deletions
|
|
@ -1890,11 +1890,14 @@ class Builder(object):
|
|||
|
||||
# misc
|
||||
|
||||
def getresult(self, retval, idx, name=""):
|
||||
def extract_value(self, retval, idx, name=""):
|
||||
check_is_value(retval)
|
||||
return _make_value(
|
||||
_core.LLVMBuildGetResult(self.ptr, retval.ptr, idx, name))
|
||||
|
||||
# obsolete synonym for extract_value
|
||||
getresult = extract_value
|
||||
|
||||
def phi(self, ty, name=""):
|
||||
check_is_type(ty)
|
||||
return _make_value(_core.LLVMBuildPhi(self.ptr, ty.ptr, name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue