diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-06-09 19:08:17 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-06-09 19:08:17 +0000 |
commit | 8bc95016579305d12b03cbe3e53a1a0432b3e46c (patch) | |
tree | 0ff26d28e64a8d87787aa3752e41e651448d99b9 /contrib/llvm | |
parent | c0c0ff241b4de015cc70e3dcb589efcc3323681b (diff) | |
download | FreeBSD-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.cpp | 2 |
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; |