svn commit: r208958 - head/contrib/llvm/lib/System

Roman Divacky rdivacky at FreeBSD.org
Wed Jun 9 19:08:19 UTC 2010


Author: rdivacky
Date: Wed Jun  9 19:08:17 2010
New Revision: 208958
URL: http://svn.freebsd.org/changeset/base/208958

Log:
  Comment out piece of code using __clear_cache() which FreeBSD
  does not have. This is only used for JIT on ARM so it's harmless.
  
  Approved by:	ed (mentor)

Modified:
  head/contrib/llvm/lib/System/Memory.cpp

Modified: head/contrib/llvm/lib/System/Memory.cpp
==============================================================================
--- head/contrib/llvm/lib/System/Memory.cpp	Wed Jun  9 18:59:07 2010	(r208957)
+++ head/contrib/llvm/lib/System/Memory.cpp	Wed Jun  9 19:08:17 2010	(r208958)
@@ -61,7 +61,7 @@ void llvm::sys::Memory::InvalidateInstru
   for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize)
     asm volatile("icbi 0, %0" : : "r"(Line));
   asm volatile("isync");
-#  elif defined(__arm__) && defined(__GNUC__)
+#  elif defined(__arm__) && defined(__GNUC__) && !defined(__FreeBSD__)
   // FIXME: Can we safely always call this for __GNUC__ everywhere?
   char *Start = (char*) Addr;
   char *End = Start + Len;


More information about the svn-src-all mailing list