@@ -742,32 +742,32 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
742
742
743
743
if DEBUG : logging .debug (' ..1..' )
744
744
temp1 = temp_files .get ('.1.bc' ).name
745
- shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .PNACL_ROOT , 'opt' ), infile , '-pnacl-abi-simplify-preopt' , '-o' , temp1 ]))
745
+ shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .LLVM_ROOT , 'opt' ), infile , '-pnacl-abi-simplify-preopt' , '-o' , temp1 ]))
746
746
assert os .path .exists (temp1 )
747
747
if DEBUG :
748
748
shutil .copyfile (temp1 , os .path .join (shared .CANONICAL_TEMP_DIR , 'temp1.bc' ))
749
- shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .PNACL_ROOT , 'llvm-dis' ), 'temp1.bc' , '-o' , 'temp1.ll' ]))
749
+ shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .LLVM_ROOT , 'llvm-dis' ), 'temp1.bc' , '-o' , 'temp1.ll' ]))
750
750
751
751
#if DEBUG: logging.debug(' ..2..')
752
752
#temp2 = temp_files.get('.2.bc').name
753
- #shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT , 'opt'), temp1, '-O3', '-o', temp2]))
753
+ #shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT , 'opt'), temp1, '-O3', '-o', temp2]))
754
754
#assert os.path.exists(temp2)
755
755
#if DEBUG:
756
756
# shutil.copyfile(temp2, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp2.bc'))
757
- # shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT , 'llvm-dis'), 'temp2.bc', '-o', 'temp2.ll']))
757
+ # shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT , 'llvm-dis'), 'temp2.bc', '-o', 'temp2.ll']))
758
758
temp2 = temp1 # XXX if we optimize the bc, we remove some pnacl clutter, but it also makes varargs stores be 8-byte aligned
759
759
760
760
if DEBUG : logging .debug (' ..3..' )
761
761
temp3 = temp_files .get ('.3.bc' ).name
762
- shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .PNACL_ROOT , 'opt' ), temp2 , '-pnacl-abi-simplify-postopt' , '-o' , temp3 ]))
762
+ shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .LLVM_ROOT , 'opt' ), temp2 , '-pnacl-abi-simplify-postopt' , '-o' , temp3 ]))
763
763
assert os .path .exists (temp3 )
764
764
if DEBUG :
765
765
shutil .copyfile (temp3 , os .path .join (shared .CANONICAL_TEMP_DIR , 'temp3.bc' ))
766
- shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .PNACL_ROOT , 'llvm-dis' ), 'temp3.bc' , '-o' , 'temp3.ll' ]))
766
+ shared .jsrun .timeout_run (subprocess .Popen ([os .path .join (shared .LLVM_ROOT , 'llvm-dis' ), 'temp3.bc' , '-o' , 'temp3.ll' ]))
767
767
768
768
if DEBUG : logging .debug (' ..4..' )
769
769
temp4 = temp_files .get ('.4.js' ).name
770
- backend_compiler = os .path .join (shared .PNACL_ROOT , 'llc' )
770
+ backend_compiler = os .path .join (shared .LLVM_ROOT , 'llc' )
771
771
shared .jsrun .timeout_run (subprocess .Popen ([backend_compiler , temp3 , '-march=js' , '-filetype=asm' , '-o' , temp4 ], stdout = subprocess .PIPE ))
772
772
if DEBUG : shutil .copyfile (temp4 , os .path .join (shared .CANONICAL_TEMP_DIR , 'temp4.js' ))
773
773
0 commit comments