Index: lib/ExecutionEngine/ExecutionEngineBindings.cpp =================================================================== --- lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ 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,19 @@ delete unwrap(MM); } +/*===-- JIT Event Listener functions -------------------------------------===*/ + +LLVMJITEventListenerRef LLVMCreateGDBRegistrationListener(void) +{ + return wrap(JITEventListener::createGDBRegistrationListener()); +} + +LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void) +{ + return wrap(JITEventListener::createIntelJITEventListener()); +} + +LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void) +{ + return wrap(JITEventListener::createOProfileJITEventListener()); +} Index: lib/ExecutionEngine/GDBRegistrationListener.cpp =================================================================== --- lib/ExecutionEngine/GDBRegistrationListener.cpp +++ lib/ExecutionEngine/GDBRegistrationListener.cpp @@ -236,8 +236,3 @@ } } // namespace llvm - -LLVMJITEventListenerRef LLVMCreateGDBRegistrationListener(void) -{ - return wrap(JITEventListener::createGDBRegistrationListener()); -} Index: lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp =================================================================== --- lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp +++ lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp @@ -240,8 +240,3 @@ } } // namespace llvm - -LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void) -{ - return wrap(JITEventListener::createIntelJITEventListener()); -} Index: lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp =================================================================== --- lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp +++ lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp @@ -182,8 +182,3 @@ } } // namespace llvm - -LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void) -{ - return wrap(JITEventListener::createOProfileJITEventListener()); -}