Skip to content

Remove bitcode autodebugger (autodebugger.py) #12145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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