Add and remove function attributes (Krzysztof Goj)

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@89 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2010-08-03 16:31:41 +00:00
commit aa6a406c46
3 changed files with 14 additions and 0 deletions

View file

@ -1349,6 +1349,12 @@ class Function(GlobalValue):
def viewCFG(self):
return _core.LLVMViewFunctionCFG(self.ptr)
def add_attribute(self, attr):
_core.LLVMAddFunctionAttr(self.ptr, attr)
def remove_attribute(self, attr):
_core.LLVMRemoveFunctionAttr(self.ptr, attr)
def viewCFGOnly(self):
return _core.LLVMViewFunctionCFGOnly(self.ptr)