Wrapper to call private test-only methods on LlvmCodeGen object
| 109 | |
| 110 | // Wrapper to call private test-only methods on LlvmCodeGen object |
| 111 | Status CreateFromFile(const string& filename, scoped_ptr<LlvmCodeGen>* codegen) { |
| 112 | RETURN_IF_ERROR(LlvmCodeGen::CreateFromFile(fragment_state_, |
| 113 | fragment_state_->obj_pool(), NULL, filename, "test", codegen)); |
| 114 | return (*codegen)->MaterializeModule(); |
| 115 | } |
| 116 | |
| 117 | static void AddFunctionToJit(LlvmCodeGen* codegen, llvm::Function* fn, |
| 118 | CodegenFnPtrBase* fn_ptr) { |
nothing calls this directly
no test coverage detected