Added llvm.core.Argument.alignment

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@101 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2010-10-15 10:33:37 +00:00
commit b7fa3e8fa1
4 changed files with 38 additions and 2 deletions

View file

@ -1260,9 +1260,15 @@ class Argument(Value):
def remove_attribute(self, attr):
_core.LLVMRemoveAttribute(self.ptr, attr)
def set_alignment(self, align):
def _set_alignment(self, align):
_core.LLVMSetParamAlignment(self.ptr, align)
def _get_alignment(self):
return _core.LLVMGetParamAlignment(self.ptr)
alignment = \
property(_get_alignment, _set_alignment)
class Function(GlobalValue):