[PATCH] D49654: Move JIT listener C binding definitions to ExecutionEngineBindings.cpp.

Andres Freund via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 08:05:12 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL337930: Move JIT listener C binding fallbackks to ExecutionEngineBindings.cpp. (authored by anarazel, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D49654

Files:
  llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
  llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp


Index: llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp
===================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngineBindings.cpp
@@ -14,6 +14,7 @@
 #include "llvm-c/ExecutionEngine.h"
 #include "llvm/ExecutionEngine/ExecutionEngine.h"
 #include "llvm/ExecutionEngine/GenericValue.h"
+#include "llvm/ExecutionEngine/JITEventListener.h"
 #include "llvm/ExecutionEngine/RTDyldMemoryManager.h"
 #include "llvm/IR/DerivedTypes.h"
 #include "llvm/IR/Module.h"
@@ -411,3 +412,26 @@
   delete unwrap(MM);
 }
 
+/*===-- JIT Event Listener functions -------------------------------------===*/
+
+
+#if !LLVM_USE_INTEL_JITEVENTS
+LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void)
+{
+  return nullptr;
+}
+#endif
+
+#if !LLVM_USE_OPROFILE
+LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void)
+{
+  return nullptr;
+}
+#endif
+
+#if !LLVM_USE_PERF
+LLVMJITEventListenerRef LLVMCreatePerfJITEventListener(void)
+{
+  return nullptr;
+}
+#endif
Index: llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
===================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
+++ llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
@@ -134,16 +134,4 @@
 
 } // end namespace llvm
 
-#ifndef LLVM_USE_INTEL_JITEVENTS
-LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void);
-#endif
-
-#ifndef LLVM_USE_OPROFILE
-LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void);
-#endif
-
-#ifndef LLVM_USE_PERF
-LLVMJITEventListenerRef LLVMCreatePerfJITEventListener(void);
-#endif
-
 #endif // LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49654.157271.patch
Type: text/x-patch
Size: 1756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180725/202e97e9/attachment.bin>


More information about the llvm-commits mailing list