forked from OSchip/llvm-project
JITTest.cpp: Use LLVM_ATTRIBUTE_USED, rather than __attribute__ directly!
llvm-svn: 165790
This commit is contained in:
parent
ff639688e3
commit
2d1bd7cca7
|
@ -633,7 +633,7 @@ TEST_F(JITTest, AvailableExternallyGlobalIsntEmitted) {
|
||||||
// This function is intentionally defined differently in the statically-compiled
|
// 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
|
// program from the IR input to the JIT to assert that the JIT doesn't use its
|
||||||
// definition.
|
// definition.
|
||||||
extern "C" int32_t JITTest_AvailableExternallyFunction() __attribute__((used));
|
extern "C" int32_t JITTest_AvailableExternallyFunction() LLVM_ATTRIBUTE_USED;
|
||||||
extern "C" int32_t JITTest_AvailableExternallyFunction() {
|
extern "C" int32_t JITTest_AvailableExternallyFunction() {
|
||||||
return 42;
|
return 42;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue