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)
This commit is contained in:
Roman Divacky 2010-06-09 19:08:17 +00:00
parent d994242647
commit 29b430e5da

View File

@ -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;