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
|
|
@ -36,8 +36,8 @@ entry:
|
|||
}
|
||||
"""
|
||||
m = Module.from_assembly(strstream(asm))
|
||||
print "-"*72
|
||||
print m
|
||||
print("-"*72)
|
||||
print(m)
|
||||
|
||||
# Let's run a module-level inlining pass. First, create a pass manager.
|
||||
pm = PassManager.new()
|
||||
|
|
@ -55,8 +55,8 @@ pm.run(m)
|
|||
del pm
|
||||
|
||||
# Print the result. Note the change in @test2.
|
||||
print "-"*72
|
||||
print m
|
||||
print("-"*72)
|
||||
print(m)
|
||||
|
||||
|
||||
# Let's run a DCE pass on the the function 'test1' now. First create a
|
||||
|
|
@ -73,5 +73,5 @@ fpm.add( PASS_AGGRESSIVE_DCE )
|
|||
fpm.run( m.get_function_named('test1') )
|
||||
|
||||
# Print the result. Note the change in @test1.
|
||||
print "-"*72
|
||||
print m
|
||||
print("-"*72)
|
||||
print(m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue