From 8bc95016579305d12b03cbe3e53a1a0432b3e46c Mon Sep 17 00:00:00 2001 From: rdivacky Date: Wed, 9 Jun 2010 19:08:17 +0000 Subject: 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) --- contrib/llvm/lib/System/Memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/llvm/lib') 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; -- cgit v1.1