diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-12 01:34:07 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-12 01:34:07 +0000 |
commit | 97eb05b39b456ab8f830395f027c150303b8f12c (patch) | |
tree | 15f8194acf1756a1969311c6f2209ded8c399b5c /unittests/ExecutionEngine/JIT | |
parent | b92dfe0aad2cc0cfba44a482c76fea2a29ef4dd6 (diff) | |
download | external_llvm-97eb05b39b456ab8f830395f027c150303b8f12c.zip external_llvm-97eb05b39b456ab8f830395f027c150303b8f12c.tar.gz external_llvm-97eb05b39b456ab8f830395f027c150303b8f12c.tar.bz2 |
Revert r165777, "Mark function as 'used' so that LTO doesn't try to get rid of it."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/JIT')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index 1eff4d6..5e2af03 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() { return 42; } namespace { |