Updating to python 3 with 2to3. Check llvm/py3k_update.diff and llvm/py3k_update.out for the output from this.
This commit is contained in:
parent
ddbe7ad06a
commit
6d50a337ad
29 changed files with 3455 additions and 143 deletions
|
|
@ -9,9 +9,9 @@ m.add_global_variable(Type.int(), 'i')
|
|||
|
||||
# write it's assembly representation to a file
|
||||
asm = str(m)
|
||||
print >> file("/tmp/testasm.ll", "w"), asm
|
||||
print(asm, file=file("/tmp/testasm.ll", "w"))
|
||||
|
||||
# read it back into a module
|
||||
m2 = Module.from_assembly(file("/tmp/testasm.ll"))
|
||||
print m2
|
||||
print(m2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue