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 | 35ac231d7eaacaddf0d841c80a525cc62ce3e547 (patch) | |
tree | dd01acb3cbc5abd8fba58ef6391901862a6fdea9 /llvm/unittests/ExecutionEngine | |
parent | 4668e3cd6a7bbf3aa7003860189dc7350fed9d92 (diff) | |
download | bcm5719-llvm-35ac231d7eaacaddf0d841c80a525cc62ce3e547.tar.gz bcm5719-llvm-35ac231d7eaacaddf0d841c80a525cc62ce3e547.zip |
Mark function as 'used' so that LTO doesn't try to get rid of it.
llvm-svn: 165781
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/JITTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp index 5e2af030f20..44ea2130166 100644 --- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/llvm/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; } |