diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-12 01:44:08 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-12 01:44:08 +0000 |
commit | af21d6f23c138e13c18a0f36eb89e678677c911b (patch) | |
tree | 9f23da550180f844cffd49ea444c1a96c5cb343d /unittests/ExecutionEngine/JIT/JITTest.cpp | |
parent | 97eb05b39b456ab8f830395f027c150303b8f12c (diff) |
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@165781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index 5e2af030f2..44ea213016 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -633,6 +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() __attribute__((used)); extern "C" int32_t JITTest_AvailableExternallyFunction() { return 42; } |