llvm.org GIT mirror llvm / 8ab27a3
JITTest.cpp: Use LLVM_ATTRIBUTE_USED, rather than __attribute__ directly! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165790 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 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() __attribute__((used));
635 extern "C" int32_t JITTest_AvailableExternallyFunction() LLVM_ATTRIBUTE_USED;
636636 extern "C" int32_t JITTest_AvailableExternallyFunction() {
637637 return 42;
638638 }