Make sure that Cygwin assembly includes _ as part of function names.

llvm-svn: 22190
This commit is contained in:
Reid Spencer 2005-06-02 21:33:19 +00:00
parent 2d5d7084ba
commit 966f750ad2

View File

@ -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"