diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-21 17:16:50 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-21 17:16:50 -0800 |
commit | 61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (patch) | |
tree | 1670bd41f00d7075add1be97e4e08b479e81774e /emcc | |
parent | f8525825f5bc91dbe631d4d9afb1b18c3a0e5f75 (diff) |
do not generate annotations when disassembling bitcode
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -414,6 +414,8 @@ try: shutil.copyfile(input_file, in_temp(unsuffixed_basename(input_file) + '.o')) else: #.ll if not LEAVE_INPUTS_RAW: + # Note that by assembling the .ll file, then disassembling it later, we will + # remove annotations which is a good thing for compilation time if DEBUG: print >> sys.stderr, 'emcc: assembling assembly file: ', input_file shared.Building.llvm_as(input_file, in_temp(unsuffixed_basename(input_file) + '.o')) @@ -549,11 +551,12 @@ try: final = in_temp(target_basename + '.bc') if DEBUG: save_intermediate('bc', 'bc') final = shared.Building.llvm_dis(final, final + '.ll') - if DEBUG: save_intermediate('ll', 'll') else: assert len(input_files) == 1 final = input_files[0] + if DEBUG: save_intermediate('ll', 'll') + if DEBUG: print >> sys.stderr, 'emcc: LLVM => JS' final = shared.Building.emscripten(final, append_ext=False) if DEBUG: save_intermediate('original') |