summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Remarks/Remark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Remarks/Remark.cpp')
-rw-r--r--llvm/lib/Remarks/Remark.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Remarks/Remark.cpp b/llvm/lib/Remarks/Remark.cpp
index b4be19f47a5..401ac514b01 100644
--- a/llvm/lib/Remarks/Remark.cpp
+++ b/llvm/lib/Remarks/Remark.cpp
@@ -66,6 +66,10 @@ LLVMRemarkArgGetDebugLoc(LLVMRemarkArgRef Arg) {
return nullptr;
}
+extern "C" void LLVMRemarkEntryDispose(LLVMRemarkEntryRef Remark) {
+ delete unwrap(Remark);
+}
+
extern "C" LLVMRemarkType LLVMRemarkEntryGetType(LLVMRemarkEntryRef Remark) {
// Assume here that the enums can be converted both ways.
return static_cast<LLVMRemarkType>(unwrap(Remark)->RemarkType);
OpenPOWER on IntegriCloud