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:
mdevan.foobar 2010-10-24 08:46:59 +00:00
commit ae61530aff
2 changed files with 7 additions and 4 deletions

View file

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