summaryrefslogtreecommitdiffstats
path: root/contrib/llvm
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2010-06-09 19:08:17 +0000
committerrdivacky <rdivacky@FreeBSD.org>2010-06-09 19:08:17 +0000
commit8bc95016579305d12b03cbe3e53a1a0432b3e46c (patch)
tree0ff26d28e64a8d87787aa3752e41e651448d99b9 /contrib/llvm
parentc0c0ff241b4de015cc70e3dcb589efcc3323681b (diff)
downloadFreeBSD-src-8bc95016579305d12b03cbe3e53a1a0432b3e46c.zip
FreeBSD-src-8bc95016579305d12b03cbe3e53a1a0432b3e46c.tar.gz
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)
Diffstat (limited to 'contrib/llvm')
-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 ef23b8d..49ccf3d 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;
OpenPOWER on IntegriCloud