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:
parent
b7200e59b1
commit
aa6a406c46
3 changed files with 14 additions and 0 deletions
|
|
@ -295,6 +295,9 @@ def do_function():
|
|||
g = f.append_basic_block('a')
|
||||
g = f.get_entry_basic_block()
|
||||
g = list(f.basic_blocks)
|
||||
f.add_attribute(ATTR_NO_RETURN)
|
||||
f.add_attribute(ATTR_ALWAYS_INLINE)
|
||||
f.remove_attribute(ATTR_NO_RETURN)
|
||||
# LLVM misbehaves:
|
||||
#try:
|
||||
# f.verify()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue