[llvm] r213708 - [MCJIT] Make stub_addr functionality in RuntimeDyldChecker work in release mode.

Lang Hames lhames at gmail.com
Tue Jul 22 16:50:52 PDT 2014


Author: lhames
Date: Tue Jul 22 18:50:51 2014
New Revision: 213708

URL: http://llvm.org/viewvc/llvm-project?rev=213708&view=rev
Log:
[MCJIT] Make stub_addr functionality in RuntimeDyldChecker work in release mode.

There's no reason to restrict this particular piece of RuntimeDyldChecker
functionality to +Asserts builds.

This should fix failures in MachO_x86-64_PIC_relocations.s on release bots.


Modified:
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=213708&r1=213707&r2=213708&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Tue Jul 22 18:50:51 2014
@@ -206,12 +206,10 @@ ObjectImage *RuntimeDyldImpl::loadObject
       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);
-#endif
   }
 
   // Give the subclasses a chance to tie-up any loose ends.





More information about the llvm-commits mailing list