Remove unused LLVM JIT wapper functions (#1747)

Only create the necessary wrapper functions for LLVM JIT
This commit is contained in:
Wenyong Huang
2022-11-25 11:26:08 +08:00
committed by GitHub
parent 0456043d8d
commit 96570cca22
3 changed files with 14 additions and 4 deletions

View File

@ -1930,8 +1930,8 @@ compile_llvm_jit_functions(WASMModule *module, char *error_buf,
if (error != LLVMErrorSuccess) {
char *err_msg = LLVMGetErrorMessage(error);
char buf[128];
snprintf(buf, sizeof(buf), "failed to compile orc jit function: %s",
err_msg);
snprintf(buf, sizeof(buf),
"failed to compile orc jit function: %s\n", err_msg);
set_error_buf(error_buf, error_buf_size, buf);
LLVMDisposeErrorMessage(err_msg);
return false;