Revert r165777, "Mark function as 'used' so that LTO doesn't try to get rid of it."
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 12 Oct 2012 01:34:07 +0000 (01:34 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 12 Oct 2012 01:34:07 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165780 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/JIT/JITTest.cpp

index 1eff4d649eca6f0373460e964e9a72803cc253e1..5e2af030f20f5b157712b3479f9518aba1f4d28e 100644 (file)
@@ -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() {
   return 42;
 }
 namespace {