OSDN Git Service

[CMake] Expose opt-remark tooling through libOptRemarks.dylib
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 5 Nov 2018 11:57:44 +0000 (11:57 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 5 Nov 2018 11:57:44 +0000 (11:57 +0000)
commit040e4d75d3bfa4f06f77f9f93ddbd44f18d50f15
treecab9c714efad27fabc1e2f942287a8de2925d1aa
parent4bf0a8ee3f8e9d0f069a650dc6ddbb9abcd9326b
[CMake] Expose opt-remark tooling through libOptRemarks.dylib

* Create an install target for it
* Add it under tools/opt-remarks
* Add an export file for the dylib
* Install the llvm-c/OptRemarks.h header
* Add an API to query its version

rdar://45458839

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346127 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
include/llvm-c/OptRemarks.h
tools/opt-remarks/CMakeLists.txt [new file with mode: 0644]
tools/opt-remarks/OptRemarks.exports [new file with mode: 0644]
tools/opt-remarks/liboptremarks.cpp [new file with mode: 0644]