[llvm-commits] [llvm] r51538 - /llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp

Chris Lattner sabre at nondot.org
Fri May 23 21:58:48 PDT 2008


Author: lattner
Date: Fri May 23 23:58:48 2008
New Revision: 51538

URL: http://llvm.org/viewvc/llvm-project?rev=51538&view=rev
Log:
Add FreeBSD/PPC support, patch by Marcel Moolenaar!

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp?rev=51538&r1=51537&r2=51538&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp Fri May 23 23:58:48 2008
@@ -72,7 +72,7 @@
 extern "C" void PPC64CompilationCallback();
 
 #if (defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)) && \
-    !defined(__ppc64__)
+    !(defined(__ppc64__) || defined(__FreeBSD__))
 // CompilationCallback stub - We can't use a C function with inline assembly in
 // it, because we the prolog/epilog inserted by GCC won't work for us.  Instead,
 // write our own wrapper, which does things our way, so we have complete control
@@ -138,7 +138,7 @@
     );
 
 #elif defined(__PPC__) && !defined(__ppc64__)
-// Linux/PPC support
+// Linux & FreeBSD / PPC 32 support
 
 // CompilationCallback stub - We can't use a C function with inline assembly in
 // it, because we the prolog/epilog inserted by GCC won't work for us.  Instead,





More information about the llvm-commits mailing list