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"