diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-04-29 18:41:44 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-04-29 18:41:44 +0000 |
commit | 71c2e0f2620a07ca96dc1389e282fdad3487bd02 (patch) | |
tree | 19a961fa55ecfc46f101ed2470b3bae25c3faa0e /llvm/lib | |
parent | 2b48a9441306184c995bab10ce7b7e3375b47cb4 (diff) | |
download | bcm5719-llvm-71c2e0f2620a07ca96dc1389e282fdad3487bd02.tar.gz bcm5719-llvm-71c2e0f2620a07ca96dc1389e282fdad3487bd02.zip |
Mingw32 patches supplied by Anton Korobeynikov.
llvm-svn: 28023
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/System/Win32/Path.inc | 2 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86JITInfo.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index 92ab62f3cdd..8f3ceebb28b 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/lib/System/Win32/Path.inc @@ -741,7 +741,7 @@ Path::setStatusInfoOnDisk(const StatusInfo& si) const { } void -sys::CopyFile(const sys::Path &Dest, const sys::Path &Src) { +CopyFile(const sys::Path &Dest, const sys::Path &Src) { // Can't use CopyFile macro defined in Windows.h because it would mess up the // above line. We use the expansion it would have in a non-UNICODE build. if (!::CopyFileA(Src.c_str(), Dest.c_str(), false)) diff --git a/llvm/lib/Target/X86/X86JITInfo.cpp b/llvm/lib/Target/X86/X86JITInfo.cpp index 19ff68bd8f7..7f93895deb9 100644 --- a/llvm/lib/Target/X86/X86JITInfo.cpp +++ b/llvm/lib/Target/X86/X86JITInfo.cpp @@ -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 |