updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / llvm-etoile / llvm-etoile.patch
bloba02fbac4cb9676b0cf441bbaf6dcbc94286759ba
1 Index: lib/Target/X86/X86JITInfo.cpp
2 ===================================================================
3 --- lib/Target/X86/X86JITInfo.cpp (revisione 67366)
4 +++ lib/Target/X86/X86JITInfo.cpp (copia locale)
5 @@ -120,7 +120,7 @@
6 // JIT callee
7 "movq %rbp, %rdi\n" // Pass prev frame and return address
8 "movq 8(%rbp), %rsi\n"
9 - "call " ASMPREFIX "X86CompilationCallback2" ASMCALLSUFFIX "\n"
10 + "call " ASMPREFIX "X86CompilationCallback2" "\n"
11 // Restore all XMM arg registers
12 "movaps 112(%rsp), %xmm7\n"
13 "movaps 96(%rsp), %xmm6\n"
14 @@ -194,7 +194,7 @@
15 "movl 4(%ebp), %eax\n" // Pass prev frame and return address
16 "movl %eax, 4(%esp)\n"
17 "movl %ebp, (%esp)\n"
18 - "call " ASMPREFIX "X86CompilationCallback2" ASMCALLSUFFIX "\n"
19 + "call " ASMPREFIX "X86CompilationCallback2" "\n"
20 "movl %ebp, %esp\n" // Restore ESP
21 CFI(".cfi_def_cfa_register %esp\n")
22 "subl $12, %esp\n"
23 @@ -248,7 +248,7 @@
24 "movl 4(%ebp), %eax\n" // Pass prev frame and return address
25 "movl %eax, 4(%esp)\n"
26 "movl %ebp, (%esp)\n"
27 - "call " ASMPREFIX "X86CompilationCallback2" ASMCALLSUFFIX "\n"
28 + "call " ASMPREFIX "X86CompilationCallback2" "\n"
29 "addl $16, %esp\n"
30 "movaps 48(%esp), %xmm3\n"
31 CFI(".cfi_restore %xmm3\n")
32 @@ -316,6 +316,7 @@
33 /// function stub when we did not know the real target of a call. This function
34 /// must locate the start of the stub or call site and pass it into the JIT
35 /// compiler function.
36 +namespace {
37 extern "C" void ATTRIBUTE_USED
38 X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr) {
39 intptr_t *RetAddrLoc = &StackPtr[1];
40 @@ -388,6 +389,7 @@
41 *RetAddrLoc -= 5;
42 #endif
46 TargetJITInfo::LazyResolverFn
47 X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {