diff options
author | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2013-06-12 08:45:39 +0000 |
---|---|---|
committer | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2013-06-12 08:45:39 +0000 |
commit | 8fdb53dc5e3d545c5ad4d034bcfbc2e66389472a (patch) | |
tree | 65b0bcf7c224fccfe66a95d9fe149011b10ef8e4 | |
parent | 0d3b9ac6345b21ba65e8f372f390c08a74c36897 (diff) | |
download | external_llvm-8fdb53dc5e3d545c5ad4d034bcfbc2e66389472a.zip external_llvm-8fdb53dc5e3d545c5ad4d034bcfbc2e66389472a.tar.gz external_llvm-8fdb53dc5e3d545c5ad4d034bcfbc2e66389472a.tar.bz2 |
Fix gcc -flto build, by adding LLVM_ATTRIBUTE_USED to
LLVMX86CompilationCallback2, called from inline asm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183824 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86JITInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index 44d8cce..fc86e1e 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/lib/Target/X86/X86JITInfo.cpp @@ -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]; |