diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-03-05 20:45:17 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-03-05 20:45:17 +0000 |
commit | 1c4bab3ba4e0e16479c3be32996269ebf45bafa1 (patch) | |
tree | 43184ba6b0d33dafbbe84d89579a79f671491a65 /llvm/tools/remarks-shlib/libremarks.cpp | |
parent | 47db2262ebcc598a51b2855b112b809cf41774c3 (diff) | |
download | bcm5719-llvm-1c4bab3ba4e0e16479c3be32996269ebf45bafa1.tar.gz bcm5719-llvm-1c4bab3ba4e0e16479c3be32996269ebf45bafa1.zip |
[OptRemarks] Make OptRemarks more generic: rename OptRemarks to Remarks
Getting rid of the name "optimization remarks" for anything that
involves handling remarks on the client side.
It's safer to do this now, before we get stuck with that name in all the
APIs and public interfaces we decide to export to users in the future.
This renames llvm/tools/opt-remarks to llvm/tools/remarks-shlib, and now
generates `libRemarks.dylib` instead of `libOptRemarks.dylib`.
Differential Revision: https://reviews.llvm.org/D58535
llvm-svn: 355439
Diffstat (limited to 'llvm/tools/remarks-shlib/libremarks.cpp')
-rw-r--r-- | llvm/tools/remarks-shlib/libremarks.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/tools/remarks-shlib/libremarks.cpp b/llvm/tools/remarks-shlib/libremarks.cpp new file mode 100644 index 00000000000..3f65217cbcc --- /dev/null +++ b/llvm/tools/remarks-shlib/libremarks.cpp @@ -0,0 +1,17 @@ +//===-libremarks.cpp - LLVM Remarks Shared Library ------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// Provide a library to work with remark diagnostics. +// +//===----------------------------------------------------------------------===// + +#include "llvm-c/Remarks.h" + +extern uint32_t LLVMRemarkVersion(void) { + return REMARKS_API_VERSION; +} |