| 156 | } |
| 157 | |
| 158 | std::string DumpModuleIR(const llvm::Module& module) { |
| 159 | std::string ir; |
| 160 | llvm::raw_string_ostream stream(ir); |
| 161 | module.print(stream, nullptr); |
| 162 | return ir; |
| 163 | } |
| 164 | |
| 165 | void AddAbsoluteSymbol(llvm::orc::LLJIT& lljit, const std::string& name, |
| 166 | void* function_ptr) { |