aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-06-02 21:33:19 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-06-02 21:33:19 +0000
commit628214eb74549ee33b714107409076f348182333 (patch)
treeed3f572f57caa204b92d89895da2c560c90ea2a1 /lib
parent932e2e33ebe9e888c37db723ef066df894ad2773 (diff)
downloadexternal_llvm-628214eb74549ee33b714107409076f348182333.zip
external_llvm-628214eb74549ee33b714107409076f348182333.tar.gz
external_llvm-628214eb74549ee33b714107409076f348182333.tar.bz2
Make sure that Cygwin assembly includes _ as part of function names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86JITInfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp
index d8ca53e..afbb1ec 100644
--- a/lib/Target/X86/X86JITInfo.cpp
+++ b/lib/Target/X86/X86JITInfo.cpp
@@ -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"