xo-jit: + MachPipeline::mangle()
This commit is contained in:
parent
3f441d8ba6
commit
787d0b69e2
1 changed files with 12 additions and 0 deletions
|
|
@ -598,6 +598,18 @@ namespace xo {
|
|||
|
||||
this->recreate_llvm_ir_pipeline();
|
||||
}
|
||||
std::string
|
||||
MachPipeline::mangle(const std::string & sym) const
|
||||
{
|
||||
auto p = this->jit_->mangle(sym);
|
||||
|
||||
if (p)
|
||||
return (*p).str();
|
||||
|
||||
throw std::runtime_error(tostr("MachPipeline::mangle"
|
||||
": mangle(sym) returned empty pointer",
|
||||
xtag("sym", sym)));
|
||||
} /*mangle*/
|
||||
|
||||
llvm::Expected<llvm::orc::ExecutorAddr>
|
||||
MachPipeline::lookup_symbol(const std::string & sym)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue