summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-10-12 01:34:07 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-10-12 01:34:07 +0000
commit4668e3cd6a7bbf3aa7003860189dc7350fed9d92 (patch)
treeebf5d5e7c9125b22d0c03a71d8e07bc4b3f3421d /llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
parentb39f47b067c5bb0ed89e05d2a895facc454d4386 (diff)
downloadbcm5719-llvm-4668e3cd6a7bbf3aa7003860189dc7350fed9d92.tar.gz
bcm5719-llvm-4668e3cd6a7bbf3aa7003860189dc7350fed9d92.zip
Revert r165777, "Mark function as 'used' so that LTO doesn't try to get rid of it."
llvm-svn: 165780
Diffstat (limited to 'llvm/unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index 1eff4d649ec..5e2af030f20 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/llvm/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() {
return 42;
}
namespace {
OpenPOWER on IntegriCloud