llvm.org GIT mirror llvm / 5665a3d
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@165777 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 1 addition(s) and 1 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() {
635 extern "C" int32_t JITTest_AvailableExternallyFunction() __attribute__((used)) {
636636 return 42;
637637 }
638638 namespace {