llvm-6502/unittests/ExecutionEngine/JIT
Rafael Espindola 670655471d Assert on duplicate registration. Don't depend on function pointer equality.
Before this patch we would assert when building llvm as multiple shared
libraries (cmake's BUILD_SHARED_LIBS). The problem was the line

if (T.AsmStreamerCtorFn == Target::createDefaultAsmStreamer)

which returns false because of -fvisibility-inlines-hidden. It is easy
to fix just this one case, but I decided to try to also make the
registration more strict. It looks like the old logic for ignoring
followup registration was just a temporary hack that outlived its
usefulness.

This patch converts the ifs to asserts, fixes the few cases that were
registering twice and makes sure all the asserts compare with null.

Thanks for Joerg for reporting the problem and reviewing the patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192803 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-16 16:21:40 +00:00
..
CMakeLists.txt Explicitly add -Wl,--export-all-symbols on mingw/cygwin. 2013-04-04 01:19:55 +00:00
IntelJITEventListenerTest.cpp Removing dependency on third party library for Intel JIT event support. 2012-09-28 17:35:20 +00:00
JITEventListenerTest.cpp [SystemZ] Set up JIT/MCJIT test cases 2013-05-06 16:21:50 +00:00
JITEventListenerTestCommon.h Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
JITMemoryManagerTest.cpp This threads SectionName through the allocateCodeSection/allocateDataSection APIs, both in C++ and C land. 2013-10-02 00:59:25 +00:00
JITTest.cpp Assert on duplicate registration. Don't depend on function pointer equality. 2013-10-16 16:21:40 +00:00
JITTests.def
Makefile Add support for source and line information to IntelJITEventListener for object emitted by MCJIT. 2013-01-28 19:52:37 +00:00
MultiJITTest.cpp Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc." 2013-07-26 22:13:57 +00:00
OProfileJITEventListenerTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00