llvm.org GIT mirror llvm / af21d6f
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 Bill Wendling 8 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
632632 // This function is intentionally defined differently in the statically-compiled
633633 // program from the IR input to the JIT to assert that the JIT doesn't use its
634634 // definition.
635 extern "C" int32_t JITTest_AvailableExternallyFunction() __attribute__((used));
635636 extern "C" int32_t JITTest_AvailableExternallyFunction() {
636637 return 42;
637638 }