xo-jit: in codegen_primitive() honor explicit_symbol_def flag
This commit is contained in:
parent
ba39b6366d
commit
c09f1f46df
1 changed files with 19 additions and 0 deletions
|
|
@ -254,6 +254,25 @@ namespace xo {
|
|||
}
|
||||
#endif
|
||||
|
||||
if (expr->explicit_symbol_def()) {
|
||||
static llvm::ExitOnError llvm_exit_on_err;
|
||||
|
||||
llvm_exit_on_err(this->jit_->intern_symbol(expr->name(),
|
||||
expr->function_address()));
|
||||
|
||||
#ifdef NOT_USING
|
||||
if (!llvm_result) {
|
||||
cerr << "MachPipeline::codegen_primitive"
|
||||
<< ": intern_symbol failed"
|
||||
<< xtag("name", expr->name())
|
||||
<< xtag("addr", expr->function_address())
|
||||
<< endl;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
log && log("returning llvm function");
|
||||
|
||||
return fn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue