mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 03:40:35 +00:00
Fix gcc -flto build, by adding LLVM_ATTRIBUTE_USED to
LLVMX86CompilationCallback2, called from inline asm. llvm-svn: 183824
This commit is contained in:
parent
7e14cf65e1
commit
be8cacd6af
@ -339,6 +339,7 @@ extern "C" {
|
||||
/// must locate the start of the stub or call site and pass it into the JIT
|
||||
/// compiler function.
|
||||
extern "C" {
|
||||
LLVM_ATTRIBUTE_USED // Referenced from inline asm.
|
||||
LLVM_LIBRARY_VISIBILITY void LLVMX86CompilationCallback2(intptr_t *StackPtr,
|
||||
intptr_t RetAddr) {
|
||||
intptr_t *RetAddrLoc = &StackPtr[1];
|
||||
|
Loading…
Reference in New Issue
Block a user