Wrapper to call private test-only methods on LlvmCodeGen object
| 662 | |
| 663 | // Wrapper to call private test-only methods on LlvmCodeGen object |
| 664 | Status CreateFromFile(const string& filename, scoped_ptr<LlvmCodeGen>* codegen) { |
| 665 | RETURN_IF_ERROR(LlvmCodeGen::CreateFromFile(fragment_state_, |
| 666 | fragment_state_->obj_pool(), nullptr, filename, "test", codegen)); |
| 667 | return (*codegen)->MaterializeModule(); |
| 668 | } |
| 669 | |
| 670 | static void AddFunctionToJit(LlvmCodeGen* codegen, llvm::Function* fn, |
| 671 | CodegenFnPtrBase* fn_ptr) { |
nothing calls this directly
no test coverage detected