Change clang system call to libclang api call.
authorYang Rong <rong.r.yang@intel.com>
Thu, 23 May 2013 05:48:46 +0000 (13:48 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 23 May 2013 05:51:20 +0000 (13:51 +0800)
commit34ed7dbf95eae804655869828e4544366cc4b54b
tree116ed06bd73f3ae9d43ce6487231d17a91538690
parent5fb4ca0755d62ba62e30f17511b1314ade5c017d
Change clang system call to libclang api call.

The original call clang command directly as frontend. The implement is not very flexible.
I change to call libclang apis, support both clang 3.1 and clang 3.2.
Now still write the intermediate to the file, for code simply.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
CMake/FindLLVM.cmake
backend/src/CMakeLists.txt
backend/src/backend/program.cpp