Mingw32 patches supplied by Anton Korobeynikov.
authorJeff Cohen <jeffc@jolt-lang.org>
Sat, 29 Apr 2006 18:41:44 +0000 (18:41 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sat, 29 Apr 2006 18:41:44 +0000 (18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28023 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/Path.inc
lib/Target/X86/X86JITInfo.cpp

index 92ab62f3cdd384f4e4f7f6884b99c5c0e5ba9a31..8f3ceebb28b0b9b550f4b22ca53cd441e86b265e 100644 (file)
@@ -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))
index 19ff68bd8f71fa59db968ac9feb2be6174799fe7..7f93895deb9de3e14b947dba2fcbb73e9a58082a 100644 (file)
@@ -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