diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-11-06 18:51:59 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-11-06 18:51:59 +0000 |
commit | d8ffd9c7e7d8e4175ee990b5c083ca4440387d25 (patch) | |
tree | 158d801d5516fecd7d9690fe2ebf1b79c1173d91 /llvm/lib/ExecutionEngine/IntelJITEvents | |
parent | 9f078b773d8346fb0da68ec65d5ab12d99c56bf9 (diff) | |
download | bcm5719-llvm-d8ffd9c7e7d8e4175ee990b5c083ca4440387d25.tar.gz bcm5719-llvm-d8ffd9c7e7d8e4175ee990b5c083ca4440387d25.zip |
Add interface for object-based JIT events.
This patch adds the interface to expose events from MCJIT when an object is emitted or freed and implements the MCJIT functionality to send those events. The IntelJITEventListener implementation is left empty for now. It will be fleshed out in a future patch.
llvm-svn: 167475
Diffstat (limited to 'llvm/lib/ExecutionEngine/IntelJITEvents')
-rw-r--r-- | llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp index 23f86073221..4cb0270d576 100644 --- a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp @@ -54,6 +54,10 @@ public: const EmittedFunctionDetails &Details); virtual void NotifyFreeingMachineCode(void *OldPtr); + + virtual void NotifyObjectEmitted(const ObjectImage &Obj); + + virtual void NotifyFreeingObject(const ObjectImage &Obj); }; static LineNumberInfo LineStartToIntelJITFormat( @@ -164,6 +168,12 @@ void IntelJITEventListener::NotifyFreeingMachineCode(void *FnStart) { } } +void IntelJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) { +} + +void IntelJITEventListener::NotifyFreeingObject(const ObjectImage &Obj) { +} + } // anonymous namespace. namespace llvm { |