Alternative fix for problem addressed in r182233
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 21 May 2013 10:30:59 +0000 (10:30 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 21 May 2013 10:30:59 +0000 (10:30 +0000)
commite3658a26b5381e09e96563db27bb51f4fe067db8
treece0a51d95bd8611932f354f159ed1b6dece01d88
parentf106d8bad6ba3759e512e1a1e6cc09ce832bd74e
Alternative fix for problem addressed in r182233

Revision r182233 partially reverted the change in r181200 to simplify
JIT unif test #ifdefs, because that change caused a link error on some
host operating systems where the export list requires the following
symbols to be defined:

 JITTest_AvailableExternallyFunction
 JITTest_AvailableExternallyGlobal

As discussed on the list, the commit reverts r182233 (and re-installs
the full r181200 change), and instead fixes the link problem by moving
those two symbols to the top of the file and unconditionally defining
them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182367 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ExecutionEngine/JIT/JITTest.cpp