mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-17 00:57:54 +00:00
Make sure that Cygwin assembly includes _ as part of function names.
llvm-svn: 22190
This commit is contained in:
parent
2d5d7084ba
commit
966f750ad2
@ -43,13 +43,22 @@ extern "C" {
|
|||||||
asm(
|
asm(
|
||||||
".text\n"
|
".text\n"
|
||||||
".align 8\n"
|
".align 8\n"
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
".globl _X86CompilationCallback\n"
|
||||||
|
"_X86CompilationCallback:\n"
|
||||||
|
#else
|
||||||
".globl X86CompilationCallback\n"
|
".globl X86CompilationCallback\n"
|
||||||
"X86CompilationCallback:\n"
|
"X86CompilationCallback:\n"
|
||||||
|
#endif
|
||||||
"pushl %ebp\n"
|
"pushl %ebp\n"
|
||||||
"movl %esp, %ebp\n" // Standard prologue
|
"movl %esp, %ebp\n" // Standard prologue
|
||||||
"pushl %eax\n"
|
"pushl %eax\n"
|
||||||
"pushl %edx\n" // save EAX/EDX
|
"pushl %edx\n" // save EAX/EDX
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
"call _X86CompilationCallback2\n"
|
||||||
|
#else
|
||||||
"call X86CompilationCallback2\n"
|
"call X86CompilationCallback2\n"
|
||||||
|
#endif
|
||||||
"popl %edx\n"
|
"popl %edx\n"
|
||||||
"popl %eax\n"
|
"popl %eax\n"
|
||||||
"popl %ebp\n"
|
"popl %ebp\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user