mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
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@165777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
427e63bc4a
commit
5665a3dbc9
@ -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() {
|
||||
extern "C" int32_t JITTest_AvailableExternallyFunction() __attribute__((used)) {
|
||||
return 42;
|
||||
}
|
||||
namespace {
|
||||
|
Loading…
x
Reference in New Issue
Block a user