aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-06-09 19:08:17 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-06-09 19:08:17 +0000
commit29b430e5daa0dbaa8464beec8e5a54b2171aae13 (patch)
tree0ff26d28e64a8d87787aa3752e41e651448d99b9 /contrib
parentd9942426478087eb1f36fea44b9f686724e59102 (diff)
downloadsrc-29b430e5daa0dbaa8464beec8e5a54b2171aae13.tar.gz
src-29b430e5daa0dbaa8464beec8e5a54b2171aae13.zip
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)
Notes
Notes: svn path=/head/; revision=208958
Diffstat (limited to 'contrib')
-rw-r--r--contrib/llvm/lib/System/Memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/lib/System/Memory.cpp b/contrib/llvm/lib/System/Memory.cpp
index ef23b8d12aab..49ccf3d5aced 100644
--- a/contrib/llvm/lib/System/Memory.cpp
+++ b/contrib/llvm/lib/System/Memory.cpp
@@ -61,7 +61,7 @@ void llvm::sys::Memory::InvalidateInstructionCache(const void *Addr,
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;