Disabled tail call for now, works only on call instructions

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@82 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2009-09-20 12:33:22 +00:00
commit c6e12fd929
2 changed files with 7 additions and 3 deletions

View file

@ -1404,9 +1404,11 @@ class CallOrInvokeInstruction(Instruction):
def set_parameter_alignment(self, idx, align):
_core.LLVMSetInstrParamAlignment(self.ptr, idx, align)
def _get_tc(self): return _core.LLVMIsTailCall(self.ptr)
def _set_tc(self, value): _core.LLVMSetTailCall(self.ptr, value)
tail_call = property(_get_tc, _set_tc)
# tail call is valid only for 'call', not 'invoke'
# disabled for now
#def _get_tc(self): return _core.LLVMIsTailCall(self.ptr)
#def _set_tc(self, value): _core.LLVMSetTailCall(self.ptr, value)
#tail_call = property(_get_tc, _set_tc)
class PHINode(Instruction):