xo-jit: + MachPipeline::dump_current_module

This commit is contained in:
Roland Conybeare 2024-06-17 17:14:44 -04:00
commit c739e3bd4c
2 changed files with 11 additions and 0 deletions

View file

@ -92,6 +92,9 @@ namespace xo {
**/
void machgen_current_module();
/** dump text description of module contents to console **/
void dump_current_module();
/** lookup symbol in jit-associated output library **/
llvm::orc::ExecutorAddr lookup_symbol(const std::string & x);

View file

@ -503,6 +503,14 @@ namespace xo {
return nullptr;
} /*codegen*/
void
MachPipeline::dump_current_module()
{
/* dump module contents to console */
llvm_module_->dump();
}
void
MachPipeline::machgen_current_module()
{