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 | 408668a834c85959f210f68504b7075a4cfdc7f3 (patch) | |
tree | 14abd3e2acb992b1d56bd7e96a6868b794bf4ece /llvm/unittests/ExecutionEngine/JIT/JITTest.cpp | |
parent | c2c6411fac535515b9f42241f41cde4aedbd71da (diff) | |
download | bcm5719-llvm-408668a834c85959f210f68504b7075a4cfdc7f3.tar.gz bcm5719-llvm-408668a834c85959f210f68504b7075a4cfdc7f3.zip |
Mark function as 'used' so that LTO doesn't try to get rid of it.
llvm-svn: 165777
Diffstat (limited to 'llvm/unittests/ExecutionEngine/JIT/JITTest.cpp')
-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 5e2af030f20..1eff4d649ec 100644 --- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/llvm/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 { |