clean llvm resource in compiler (libgbe.so)
authorGuo Yejun <yejun.guo@intel.com>
Thu, 17 Jul 2014 23:16:34 +0000 (07:16 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 25 Jul 2014 06:36:24 +0000 (14:36 +0800)
commit14a7629b6149ad6a07dc7b9912b26eef56588813
tree34964ca94487202d25644568eaa0ceaf60d0ea33
parent3155d4c2d137f8920db71ccf30a66a7e831b8cd2
clean llvm resource in compiler (libgbe.so)

since we have separated the compiler (libgbe.so) and the interpreter
(libgbeinterp.so), the LLVM resource cleanup task should be done in
the compiler instead of the GenProgram::~GenProgram which has no way
to clean llvm resources in libgbeinterp.so

Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: "Luo, Xionghu" <xionghu.luo@intel.com>
backend/src/backend/gen_program.cpp
backend/src/backend/gen_program.hpp
backend/src/backend/program.cpp
backend/src/backend/program.h
backend/src/backend/program.hpp
src/cl_gbe_loader.cpp
src/cl_gbe_loader.h
src/cl_program.c