summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-17 08:08:06 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-17 08:08:06 +0000
commit003516b592b0e7e70b597e159a33b6168932c4a6 (patch)
treea224d021e1962e80fcd37a4f24c41b4a55704b10 /llvm/unittests/ExecutionEngine
parent40617f593edf385e7bd47c71afbde9898ba0cec3 (diff)
downloadbcm5719-llvm-003516b592b0e7e70b597e159a33b6168932c4a6.tar.gz
bcm5719-llvm-003516b592b0e7e70b597e159a33b6168932c4a6.zip
Marked this variable as 'used' so that LTO doesn't get rid of it.
llvm-svn: 166092
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index ae6855e68bf..6933091949b 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -606,7 +606,7 @@ TEST_F(JITTest, FunctionIsRecompiledAndRelinked) {
// 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
OpenPOWER on IntegriCloud