|
20 | 20 | raise Exception('do not run this file directly; do something like: tests/runner.py')
|
21 | 21 |
|
22 | 22 | 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 |
24 | 24 | from tools import shared, building
|
25 | 25 | from runner import RunnerCore, path_from_root, requires_native_clang
|
26 | 26 | 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):
|
6301 | 6301 |
|
6302 | 6302 | run_all('lto')
|
6303 | 6303 |
|
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 |
| - |
6326 | 6304 | @also_with_standalone_wasm(wasm2c=True, impure=True)
|
6327 | 6305 | @no_asan('autodebug logging interferes with asan')
|
6328 | 6306 | @with_env_modify({'EMCC_AUTODEBUG': '1'})
|
|
0 commit comments