[MCJIT] Remove JITEventListener::NotifyFreeingMachineCode. This method is dead
[oota-llvm.git] / lib / ExecutionEngine / OProfileJIT / OProfileJITEventListener.cpp
index 1fd24f12f40cd96d5de6707459077ca35dcc1895..5a8ccb66e529ab82478dd832aabf3348ebb30062 100644 (file)
@@ -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;