mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 15:04:57 +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(
|
||||
".text\n"
|
||||
".align 8\n"
|
||||
#ifdef __CYGWIN__
|
||||
".globl _X86CompilationCallback\n"
|
||||
"_X86CompilationCallback:\n"
|
||||
#else
|
||||
".globl X86CompilationCallback\n"
|
||||
"X86CompilationCallback:\n"
|
||||
#endif
|
||||
"pushl %ebp\n"
|
||||
"movl %esp, %ebp\n" // Standard prologue
|
||||
"pushl %eax\n"
|
||||
"pushl %edx\n" // save EAX/EDX
|
||||
#ifdef __CYGWIN__
|
||||
"call _X86CompilationCallback2\n"
|
||||
#else
|
||||
"call X86CompilationCallback2\n"
|
||||
#endif
|
||||
"popl %edx\n"
|
||||
"popl %eax\n"
|
||||
"popl %ebp\n"
|
||||
|
Loading…
Reference in New Issue
Block a user