summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/OProfileJIT
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-05-24 21:32:54 +0000
committerAndres Freund <andres@anarazel.de>2018-05-24 21:32:54 +0000
commit4a3e2dc8f97b5061a8ef1343f9d70d76e4c90231 (patch)
tree5e895cb0a918e7db070f5bd47ba08c658c0ec05a /llvm/lib/ExecutionEngine/OProfileJIT
parent7aa54e956e687e42cc96d2e8d7dd398eb2bfd568 (diff)
downloadbcm5719-llvm-4a3e2dc8f97b5061a8ef1343f9d70d76e4c90231.tar.gz
bcm5719-llvm-4a3e2dc8f97b5061a8ef1343f9d70d76e4c90231.zip
[C-API] Add functions to create GDB, Intel, Oprofile event listeners.
The additions of Intel, Oprofile listeners were done blindly. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D44890 llvm-svn: 333230
Diffstat (limited to 'llvm/lib/ExecutionEngine/OProfileJIT')
-rw-r--r--llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
index 29d9d080fc5..1cdd1e3d743 100644
--- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
@@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm-c/ExecutionEngine.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Config/config.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
@@ -158,3 +159,7 @@ JITEventListener *JITEventListener::createOProfileJITEventListener() {
} // namespace llvm
+LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void)
+{
+ return wrap(JITEventListener::createOProfileJITEventListener());
+}
OpenPOWER on IntegriCloud