[MCJIT] Make stub_addr functionality in RuntimeDyldChecker work in release mode.
[oota-llvm.git] / lib / ExecutionEngine / RuntimeDyld / RuntimeDyld.cpp
index 7434c2a06666f35915344d01fe266aec78426d1f..810fbfff2f5d8519cbd716f0aec9d32459ace5fa 100644 (file)
@@ -206,12 +206,10 @@ ObjectImage *RuntimeDyldImpl::loadObject(ObjectImage *InputObject) {
       I = processRelocationRef(SectionID, I, *Obj, LocalSections, LocalSymbols,
                                Stubs);
 
       I = processRelocationRef(SectionID, I, *Obj, LocalSections, LocalSymbols,
                                Stubs);
 
-#ifndef NDEBUG
     // If there is an attached checker, notify it about the stubs for this
     // section so that they can be verified.
     if (Checker)
       Checker->registerStubMap(Obj->getImageName(), SectionID, Stubs);
     // If there is an attached checker, notify it about the stubs for this
     // section so that they can be verified.
     if (Checker)
       Checker->registerStubMap(Obj->getImageName(), SectionID, Stubs);
-#endif
   }
 
   // Give the subclasses a chance to tie-up any loose ends.
   }
 
   // Give the subclasses a chance to tie-up any loose ends.