[llvm-commits] [llvm] r165781 - /llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp

Bill Wendling isanbard at gmail.com
Thu Oct 11 18:44:08 PDT 2012


Author: void
Date: Thu Oct 11 20:44:08 2012
New Revision: 165781

URL: http://llvm.org/viewvc/llvm-project?rev=165781&view=rev
Log:
Mark function as 'used' so that LTO doesn't try to get rid of it.

Modified:
    llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp

Modified: llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp?rev=165781&r1=165780&r2=165781&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/JITTest.cpp Thu Oct 11 20:44:08 2012
@@ -633,6 +633,7 @@
 // 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;
 }





More information about the llvm-commits mailing list