[llvm-commits] [llvm] r166092 - /llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp

Bill Wendling isanbard at gmail.com
Wed Oct 17 01:08:07 PDT 2012


Author: void
Date: Wed Oct 17 03:08:06 2012
New Revision: 166092

URL: http://llvm.org/viewvc/llvm-project?rev=166092&view=rev
Log:
Marked this variable as 'used' so that LTO doesn't get rid of it.

Modified:
    llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp

Modified: llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp?rev=166092&r1=166091&r2=166092&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp Wed Oct 17 03:08:06 2012
@@ -606,7 +606,7 @@
 // program from the IR input to the JIT to assert that the JIT doesn't use its
 // definition.
 extern "C" int32_t JITTest_AvailableExternallyGlobal;
-int32_t JITTest_AvailableExternallyGlobal = 42;
+int32_t JITTest_AvailableExternallyGlobal LLVM_ATTRIBUTE_USED = 42;
 namespace {
 
 // Tests on ARM disabled as we're running the old jit





More information about the llvm-commits mailing list