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 | 80668fbc097ad4efbc31a4c9f097a5d787dfac47 (patch) | |
tree | 71eefdc7b8a65c44bc5ab34bca4ea744d2e57b63 /unittests/ExecutionEngine/JIT | |
parent | 020d9d5feb59b4e92b4b55c5850fe3a5f77671b0 (diff) | |
download | external_llvm-80668fbc097ad4efbc31a4c9f097a5d787dfac47.zip external_llvm-80668fbc097ad4efbc31a4c9f097a5d787dfac47.tar.gz external_llvm-80668fbc097ad4efbc31a4c9f097a5d787dfac47.tar.bz2 |
Marked this variable as 'used' so that LTO doesn't get rid of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/JIT')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index ae6855e..6933091 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/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 |