does not throw property for Function (Andrew Straw)

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@79 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2009-09-20 09:25:14 +00:00
commit 6cb58c97d7
5 changed files with 33 additions and 1 deletions

View file

@ -282,6 +282,8 @@ def do_function():
f.delete()
ft = Type.function(ti, [ti]*20)
f = Function.new(m, ft, 'func2')
has_nounwind = f.does_not_throw
f.does_not_throw = True
f2 = Function.intrinsic(m, INTR_COS, [ti])
g = f.intrinsic_id
f.calling_convenion = CC_FASTCALL