diff options
author | Luo <xionghu.luo@intel.com> | 2014-06-06 14:17:31 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-09 17:32:13 +0800 |
commit | 5262e04facf01c7165ecfc604350691cc8a3efab (patch) | |
tree | 08ba5f22cdb7480e4f8afc66bf66f08487539d18 /src/cl_program.c | |
parent | 9c0d24cdd0c9c3569e8c45dd30b38d2b7f1459ba (diff) |
remove the code of saving the llvm bitcode to file, replace it with llvm::Module
Save the global LLVMContext and module pointer to GenProgram, delete the
module pointer in the destructor.
Signed-off-by: Luo <xionghu.luo@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'src/cl_program.c')
-rw-r--r-- | src/cl_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_program.c b/src/cl_program.c index af9d21e7..42058e8f 100644 --- a/src/cl_program.c +++ b/src/cl_program.c @@ -226,7 +226,7 @@ cl_program_create_from_llvm(cl_context ctx, INVALID_VALUE_IF (file_name == NULL); program = cl_program_new(ctx); - program->opaque = compiler_program_new_from_llvm(ctx->device->vendor_id, file_name, program->build_log_max_sz, program->build_log, &program->build_log_sz, 1); + program->opaque = compiler_program_new_from_llvm(ctx->device->vendor_id, file_name, NULL, NULL, program->build_log_max_sz, program->build_log, &program->build_log_sz, 1); if (UNLIKELY(program->opaque == NULL)) { err = CL_INVALID_PROGRAM; goto error; |