diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-12 01:15:17 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-12 01:15:17 +0000 |
commit | 5665a3dbc909c1450ac17e311977cbaf9025525b (patch) | |
tree | 94a3881c2792867dfb7741db398ab539c1f16e4f /unittests | |
parent | 427e63bc4a1839cff28189dc3e192305de31abbe (diff) | |
download | external_llvm-5665a3dbc909c1450ac17e311977cbaf9025525b.zip external_llvm-5665a3dbc909c1450ac17e311977cbaf9025525b.tar.gz external_llvm-5665a3dbc909c1450ac17e311977cbaf9025525b.tar.bz2 |
Mark function as 'used' so that LTO doesn't try to get rid of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-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 5e2af03..1eff4d6 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -633,7 +633,7 @@ TEST_F(JITTest, AvailableExternallyGlobalIsntEmitted) { // This function is intentionally defined differently in the statically-compiled // program from the IR input to the JIT to assert that the JIT doesn't use its // definition. -extern "C" int32_t JITTest_AvailableExternallyFunction() { +extern "C" int32_t JITTest_AvailableExternallyFunction() __attribute__((used)) { return 42; } namespace { |