diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-06-08 01:02:38 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-06-08 01:02:38 +0000 |
commit | 6dae3308f51bafc51eef1f3e86cd525b0d4f08eb (patch) | |
tree | 5fc50b628e67b89310f21f5fad255e16648315ab | |
parent | 141e488a707428b99e480a144169e15b30b46f19 (diff) |
Fix lli linking on Mac OS X 10.4.1 for Intel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22200 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86JITInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index afbb1ec4ec..3b03308bb9 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/lib/Target/X86/X86JITInfo.cpp @@ -43,7 +43,7 @@ extern "C" { asm( ".text\n" ".align 8\n" -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__APPLE__) ".globl _X86CompilationCallback\n" "_X86CompilationCallback:\n" #else @@ -54,7 +54,7 @@ extern "C" { "movl %esp, %ebp\n" // Standard prologue "pushl %eax\n" "pushl %edx\n" // save EAX/EDX -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__APPLE__) "call _X86CompilationCallback2\n" #else "call X86CompilationCallback2\n" |