Adding support and tests for multiple module handling in lli
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.cpp
index 09fc75c6ae0ec4f7a1d2d84c780c74c9f614049f..541ba9eb62b144505970edc3934243e20649e5a9 100644 (file)
@@ -513,6 +513,7 @@ void MCJIT::UnregisterJITEventListener(JITEventListener *L) {
 }
 void MCJIT::NotifyObjectEmitted(const ObjectImage& Obj) {
   MutexGuard locked(lock);
+  MemMgr.notifyObjectLoaded(this, &Obj);
   for (unsigned I = 0, S = EventListeners.size(); I < S; ++I) {
     EventListeners[I]->NotifyObjectEmitted(Obj);
   }