Fix for python 3
This commit is contained in:
parent
740d2595ee
commit
93cd20e933
8 changed files with 41 additions and 28 deletions
|
|
@ -20,7 +20,7 @@ class TestInlineAsm(TestCase):
|
|||
inlineasm = InlineAsm.get(iaty, "bswap $0", "=r,r")
|
||||
self.assertIn('asm "bswap $0", "=r,r"', str(inlineasm))
|
||||
builder.ret(builder.call(inlineasm, [fn.args[0]]))
|
||||
print fn
|
||||
print(fn)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ def test():
|
|||
alloc = b.malloc_array(Type.int(), Constant.int(Type.int(), 10), 'hee')
|
||||
inst = b.free(alloc)
|
||||
b.ret_void()
|
||||
print m
|
||||
print(m)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test()
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class TestTBAABuilder(TestCase):
|
|||
|
||||
|
||||
bldr.ret_void()
|
||||
print mod
|
||||
print(mod)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ def debug_in_gdb(lfunc):
|
|||
|
||||
# Now let's compile and run!
|
||||
retval = ee.run_function(lfunc, [arg1])
|
||||
print retval.as_real(float_type)
|
||||
print(retval.as_real(float_type))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue