Make sure that Cygwin assembly includes _ as part of function names.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 2 Jun 2005 21:33:19 +0000 (21:33 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 2 Jun 2005 21:33:19 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22190 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86JITInfo.cpp

index d8ca53ea0278ec9ac6fd452dc7ce5b4c3d434c66..afbb1ec4eca07fe57e819b617444813879ca6aac 100644 (file)
@@ -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"