diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-17 08:08:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-17 08:08:06 +0000 |
commit | 003516b592b0e7e70b597e159a33b6168932c4a6 (patch) | |
tree | a224d021e1962e80fcd37a4f24c41b4a55704b10 /llvm/unittests/ExecutionEngine | |
parent | 40617f593edf385e7bd47c71afbde9898ba0cec3 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |