diff options
| author | Lang Hames <lhames@gmail.com> | 2014-11-21 01:57:09 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2014-11-21 01:57:09 +0000 |
| commit | b2dd9529eb56c476a27cd5d40437ae9fa766c3a7 (patch) | |
| tree | 4d603f053a9754257e8b165f51b710c81552f452 /llvm/lib | |
| parent | a315865759bc926a0e2b64ad237e8518c1a855f4 (diff) | |
| download | bcm5719-llvm-b2dd9529eb56c476a27cd5d40437ae9fa766c3a7.tar.gz bcm5719-llvm-b2dd9529eb56c476a27cd5d40437ae9fa766c3a7.zip | |
[MCJIT] Remove JITEventListener::NotifyFreeingMachineCode. This method is dead
now that the old JIT has been removed.
llvm-svn: 222494
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp | 10 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp | 12 |
2 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp index ec9414750bd..b23ca88baf1 100644 --- a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp @@ -57,8 +57,6 @@ public: ~IntelJITEventListener() { } - virtual void NotifyFreeingMachineCode(void *OldPtr); - virtual void NotifyObjectEmitted(const ObjectImage &Obj); virtual void NotifyFreeingObject(const ObjectImage &Obj); @@ -97,14 +95,6 @@ static iJIT_Method_Load FunctionDescToIntelJITFormat( return Result; } -void IntelJITEventListener::NotifyFreeingMachineCode(void *FnStart) { - MethodIDMap::iterator I = MethodIDs.find(FnStart); - if (I != MethodIDs.end()) { - Wrapper->iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_UNLOAD_START, &I->second); - MethodIDs.erase(I); - } -} - void IntelJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) { // Get the address of the object image for use as a unique identifier const void* ObjData = Obj.getData().data(); diff --git a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp index 1fd24f12f40..5a8ccb66e52 100644 --- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp @@ -49,8 +49,6 @@ public: ~OProfileJITEventListener(); - virtual void NotifyFreeingMachineCode(void *OldPtr); - virtual void NotifyObjectEmitted(const ObjectImage &Obj); virtual void NotifyFreeingObject(const ObjectImage &Obj); @@ -77,16 +75,6 @@ OProfileJITEventListener::~OProfileJITEventListener() { } } -// Removes the being-deleted function from the symbol table. -void OProfileJITEventListener::NotifyFreeingMachineCode(void *FnStart) { - assert(FnStart && "Invalid function pointer"); - if (Wrapper.op_unload_native_code(reinterpret_cast<uint64_t>(FnStart)) == -1) { - DEBUG(dbgs() - << "Failed to tell OProfile about unload of native function at " - << FnStart << "\n"); - } -} - void OProfileJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) { if (!Wrapper.isAgentAvailable()) { return; |

