From 6dae3308f51bafc51eef1f3e86cd525b0d4f08eb Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Wed, 8 Jun 2005 01:02:38 +0000 Subject: [PATCH] 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 --- lib/Target/X86/X86JITInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index afbb1ec4eca..3b03308bb9d 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"