Skip to content

Commit d33cbf4

Browse files
committed
Remove bitcode autodebugger (autodebugger.py)
This was only used in fastcomp builds. AFAICT the llvm backend uses binaryen passes to do this stuff. See: #11860
1 parent ce105db commit d33cbf4

File tree

3 files changed

+1
-312
lines changed

3 files changed

+1
-312
lines changed

tests/test_core.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
raise Exception('do not run this file directly; do something like: tests/runner.py')
2121

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

63026302
run_all('lto')
63036303

6304-
def test_autodebug_bitcode(self):
6305-
if '-flto' not in self.get_emcc_args():
6306-
return self.skipTest('must use bitcode object files for bitcode autodebug')
6307-
6308-
self.emcc_args += ['--llvm-opts', '0']
6309-
6310-
# Run a test that should work, generating some code
6311-
test_path = path_from_root('tests', 'core', 'test_structs.c')
6312-
src = test_path + '.c'
6313-
output = test_path + '.out'
6314-
self.do_run_from_file(src, output)
6315-
6316-
filename = 'out'
6317-
self.run_process([EMCC, '-c', src, '-o', filename + '.o'] + self.get_emcc_args())
6318-
6319-
# Autodebug the code
6320-
objfile = filename + '.o'
6321-
building.llvm_dis(objfile, filename + '.ll')
6322-
self.run_process([PYTHON, AUTODEBUGGER, filename + '.ll', filename + '.auto.ll'])
6323-
building.llvm_as(filename + '.auto.ll', objfile)
6324-
self.do_run_object(objfile, 'AD:-1,1')
6325-
63266304
@also_with_standalone_wasm(wasm2c=True, impure=True)
63276305
@no_asan('autodebug logging interferes with asan')
63286306
@with_env_modify({'EMCC_AUTODEBUG': '1'})

tools/autodebugger.py

Lines changed: 0 additions & 288 deletions
This file was deleted.

tools/shared.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,6 @@ def read_and_preprocess(filename, expand_macros=False):
17141714
EMXX = bat_suffix(path_from_root('em++'))
17151715
EMAR = bat_suffix(path_from_root('emar'))
17161716
EMRANLIB = bat_suffix(path_from_root('emranlib'))
1717-
AUTODEBUGGER = path_from_root('tools', 'autodebugger.py')
17181717
FILE_PACKAGER = path_from_root('tools', 'file_packager.py')
17191718

17201719
apply_configuration()

0 commit comments

Comments
 (0)