projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4668e3c
)
Mark function as 'used' so that LTO doesn't try to get rid of it.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 12 Oct 2012 01:44:08 +0000
(
01:44
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 12 Oct 2012 01:44:08 +0000
(
01:44
+0000)
llvm-svn: 165781
llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index
5e2af03
..
44ea213
100644
(file)
--- a/
llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/
llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
@@
-633,6
+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;
}