[wasm-shape] Remove explicit running-mode setting

It does it automatically.
This commit is contained in:
Behdad Esfahbod 2023-02-26 13:15:39 -07:00
parent e89415b5b9
commit 5235ee68ad
1 changed files with 0 additions and 5 deletions

View File

@ -123,11 +123,6 @@ _hb_wasm_init ()
RuntimeInitArgs init_args; RuntimeInitArgs init_args;
memset (&init_args, 0, sizeof (RuntimeInitArgs)); memset (&init_args, 0, sizeof (RuntimeInitArgs));
if (wasm_runtime_is_running_mode_supported (Mode_LLVM_JIT))
init_args.running_mode = Mode_LLVM_JIT;
else if (wasm_runtime_is_running_mode_supported (Mode_Fast_JIT))
init_args.running_mode = Mode_Fast_JIT;
init_args.mem_alloc_type = Alloc_With_Allocator; init_args.mem_alloc_type = Alloc_With_Allocator;
init_args.mem_alloc_option.allocator.malloc_func = (void *) hb_malloc; init_args.mem_alloc_option.allocator.malloc_func = (void *) hb_malloc;
init_args.mem_alloc_option.allocator.realloc_func = (void *) hb_realloc; init_args.mem_alloc_option.allocator.realloc_func = (void *) hb_realloc;