1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix gcc -flto build, by adding LLVM_ATTRIBUTE_USED to

LLVMX86CompilationCallback2, called from inline asm.

llvm-svn: 183824
This commit is contained in:
Patrik Hagglund 2013-06-12 08:45:39 +00:00
parent 7e14cf65e1
commit be8cacd6af

View File

@ -339,6 +339,7 @@ extern "C" {
/// must locate the start of the stub or call site and pass it into the JIT /// must locate the start of the stub or call site and pass it into the JIT
/// compiler function. /// compiler function.
extern "C" { extern "C" {
LLVM_ATTRIBUTE_USED // Referenced from inline asm.
LLVM_LIBRARY_VISIBILITY void LLVMX86CompilationCallback2(intptr_t *StackPtr, LLVM_LIBRARY_VISIBILITY void LLVMX86CompilationCallback2(intptr_t *StackPtr,
intptr_t RetAddr) { intptr_t RetAddr) {
intptr_t *RetAddrLoc = &StackPtr[1]; intptr_t *RetAddrLoc = &StackPtr[1];