From: NAKAMURA Takumi Date: Fri, 12 Oct 2012 08:09:29 +0000 (+0000) Subject: JITTest.cpp: Use LLVM_ATTRIBUTE_USED, rather than __attribute__ directly! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ab27a35143bdd8882338781dd0c9c69be784b50;p=oota-llvm.git 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 --- diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index 44ea2130166..ae6855e68bf 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -633,7 +633,7 @@ TEST_F(JITTest, AvailableExternallyGlobalIsntEmitted) { // 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() LLVM_ATTRIBUTE_USED; extern "C" int32_t JITTest_AvailableExternallyFunction() { return 42; }