diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-11-05 11:57:44 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-11-05 11:57:44 +0000 |
commit | 2ae1be726a9a1586eb96b981d30b51b5f6299164 (patch) | |
tree | 0ab80e39a048ce88bfa5b2b60659d2e7f8fada03 /llvm/include/llvm-c | |
parent | fec793c98f15c8a7fafafc525e66a567e9579532 (diff) | |
download | bcm5719-llvm-2ae1be726a9a1586eb96b981d30b51b5f6299164.tar.gz bcm5719-llvm-2ae1be726a9a1586eb96b981d30b51b5f6299164.zip |
[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
llvm-svn: 346127
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/OptRemarks.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/OptRemarks.h b/llvm/include/llvm-c/OptRemarks.h index f3449cc1b8c..6a90394e711 100644 --- a/llvm/include/llvm-c/OptRemarks.h +++ b/llvm/include/llvm-c/OptRemarks.h @@ -187,6 +187,13 @@ LLVMOptRemarkParserGetErrorMessage(LLVMOptRemarkParserRef Parser); extern void LLVMOptRemarkParserDispose(LLVMOptRemarkParserRef Parser); /** + * Returns the version of the opt-remarks dylib. + * + * \since OPT_REMARKS_API_VERSION=0 + */ +extern uint32_t LLVMOptRemarkVersion(void); + +/** * @} // endgoup LLVMCOPTREMARKS */ |