summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-11-05 11:57:44 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-11-05 11:57:44 +0000
commit2ae1be726a9a1586eb96b981d30b51b5f6299164 (patch)
tree0ab80e39a048ce88bfa5b2b60659d2e7f8fada03 /llvm/include/llvm-c
parentfec793c98f15c8a7fafafc525e66a567e9579532 (diff)
downloadbcm5719-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.h7
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
*/
OpenPOWER on IntegriCloud