mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Mingw32 patches supplied by Anton Korobeynikov.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -48,7 +48,7 @@ extern "C" {
|
||||
asm(
|
||||
".text\n"
|
||||
".align 8\n"
|
||||
#if defined(__CYGWIN__) || defined(__APPLE__)
|
||||
#if defined(__CYGWIN__) || defined(__APPLE__) || defined(__MINGW32__)
|
||||
".globl _X86CompilationCallback\n"
|
||||
"_X86CompilationCallback:\n"
|
||||
#else
|
||||
@@ -59,7 +59,7 @@ extern "C" {
|
||||
"movl %esp, %ebp\n" // Standard prologue
|
||||
"pushl %eax\n"
|
||||
"pushl %edx\n" // save EAX/EDX
|
||||
#if defined(__CYGWIN__)
|
||||
#if defined(__CYGWIN__) || defined(__MINGW32__)
|
||||
"call _X86CompilationCallback2\n"
|
||||
#elif defined(__APPLE__)
|
||||
"movl 4(%ebp), %eax\n" // load the address of return address
|
||||
|
Reference in New Issue
Block a user