Import test suites to test spec cases (#736)
This commit is contained in:
@ -1208,7 +1208,7 @@ WAMRCreateMCJITCompilerForModule(LLVMExecutionEngineRef *OutJIT,
|
||||
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
|
||||
|
||||
#if WASM_ENABLE_LAZY_JIT != 0
|
||||
void
|
||||
void
|
||||
aot_handle_llvm_errmsg(char *error_buf,
|
||||
uint32 error_buf_size,
|
||||
const char *string,
|
||||
@ -1222,7 +1222,7 @@ aot_handle_llvm_errmsg(char *error_buf,
|
||||
LLVMDisposeErrorMessage(err_msg);
|
||||
}
|
||||
|
||||
static bool
|
||||
static bool
|
||||
llvm_orcjit_create(AOTCompContext *comp_ctx)
|
||||
{
|
||||
char *err_msg = NULL;
|
||||
@ -1317,7 +1317,7 @@ llvm_orcjit_create(AOTCompContext *comp_ctx)
|
||||
/* if success, it will dispose lazy_orcjit_builder memory */
|
||||
error = LLVMOrcCreateLLLazyJIT(&lazy_orcjit, lazy_orcjit_builder);
|
||||
if (error) {
|
||||
aot_handle_llvm_errmsg(buf, sizeof(buf),
|
||||
aot_handle_llvm_errmsg(buf, sizeof(buf),
|
||||
"failed to create llvm lazy orcjit instance",
|
||||
error);
|
||||
goto fail;
|
||||
@ -1328,7 +1328,7 @@ llvm_orcjit_create(AOTCompContext *comp_ctx)
|
||||
&main_gen, LLVMOrcLLLazyJITGetGlobalPrefix(lazy_orcjit),
|
||||
0, NULL);
|
||||
if (error) {
|
||||
aot_handle_llvm_errmsg(buf, sizeof(buf),
|
||||
aot_handle_llvm_errmsg(buf, sizeof(buf),
|
||||
"failed to create dynmaic library search generator", error);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@ -418,7 +418,7 @@ bool
|
||||
aot_check_simd_compatibility(const char *arch_c_str, const char *cpu_c_str);
|
||||
|
||||
#if WASM_ENABLE_LAZY_JIT != 0
|
||||
void
|
||||
void
|
||||
aot_handle_llvm_errmsg(char *error_buf,
|
||||
uint32 error_buf_size,
|
||||
const char *string,
|
||||
|
||||
Reference in New Issue
Block a user