Skip to content

Commit

Permalink
Remove bitcode autodebugger (autodebugger.py)
Browse files Browse the repository at this point in the history
This was only used in fastcomp builds.  AFAICT the llvm
backend uses binaryen passes to do this stuff.

See: #11860
  • Loading branch information
sbc100 committed Sep 10, 2020
1 parent ce105db commit d33cbf4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 312 deletions.
24 changes: 1 addition & 23 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
raise Exception('do not run this file directly; do something like: tests/runner.py')

from tools.shared import try_delete, PIPE
from tools.shared import NODE_JS, V8_ENGINE, JS_ENGINES, SPIDERMONKEY_ENGINE, PYTHON, EMCC, EMAR, WINDOWS, MACOS, AUTODEBUGGER, LLVM_ROOT
from tools.shared import NODE_JS, V8_ENGINE, JS_ENGINES, SPIDERMONKEY_ENGINE, PYTHON, EMCC, EMAR, WINDOWS, MACOS, LLVM_ROOT
from tools import shared, building
from runner import RunnerCore, path_from_root, requires_native_clang
from runner import skip_if, no_wasm_backend, needs_dlfcn, no_windows, no_asmjs, is_slow_test, create_test_file, parameterized
Expand Down Expand Up @@ -6301,28 +6301,6 @@ def run_all(x):

run_all('lto')

def test_autodebug_bitcode(self):
if '-flto' not in self.get_emcc_args():
return self.skipTest('must use bitcode object files for bitcode autodebug')

self.emcc_args += ['--llvm-opts', '0']

# Run a test that should work, generating some code
test_path = path_from_root('tests', 'core', 'test_structs.c')
src = test_path + '.c'
output = test_path + '.out'
self.do_run_from_file(src, output)

filename = 'out'
self.run_process([EMCC, '-c', src, '-o', filename + '.o'] + self.get_emcc_args())

# Autodebug the code
objfile = filename + '.o'
building.llvm_dis(objfile, filename + '.ll')
self.run_process([PYTHON, AUTODEBUGGER, filename + '.ll', filename + '.auto.ll'])
building.llvm_as(filename + '.auto.ll', objfile)
self.do_run_object(objfile, 'AD:-1,1')

@also_with_standalone_wasm(wasm2c=True, impure=True)
@no_asan('autodebug logging interferes with asan')
@with_env_modify({'EMCC_AUTODEBUG': '1'})
Expand Down
288 changes: 0 additions & 288 deletions tools/autodebugger.py

This file was deleted.

1 change: 0 additions & 1 deletion tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,6 @@ def read_and_preprocess(filename, expand_macros=False):
EMXX = bat_suffix(path_from_root('em++'))
EMAR = bat_suffix(path_from_root('emar'))
EMRANLIB = bat_suffix(path_from_root('emranlib'))
AUTODEBUGGER = path_from_root('tools', 'autodebugger.py')
FILE_PACKAGER = path_from_root('tools', 'file_packager.py')

apply_configuration()
Expand Down

0 comments on commit d33cbf4

Please sign in to comment.