From fe701e2c21e2e2b4b70d0264a80e6987d2727503 Mon Sep 17 00:00:00 2001 From: Keun young Park Date: Wed, 15 Aug 2012 13:41:16 -0700 Subject: fix MIPS build - cacheflush(long start, long end, long flags) expects long Change-Id: I62a17fced343a2743aa5ce9e5d99c15c4f465cba --- lib/Support/Memory.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Support/Memory.cpp') diff --git a/lib/Support/Memory.cpp b/lib/Support/Memory.cpp index 22f7494..8617365 100644 --- a/lib/Support/Memory.cpp +++ b/lib/Support/Memory.cpp @@ -70,6 +70,10 @@ void llvm::sys::Memory::InvalidateInstructionCache(const void *Addr, const char *Start = static_cast(Addr); const char *End = Start + Len; __clear_cache(const_cast(Start), const_cast(End)); +# elif defined(__mips__) && defined(ANDROID) + // NOTE: The declaration of "cacheflush" in bionic: + // extern int cacheflush(long start, long end, long flags); + cacheflush((long)Addr, (long)(Addr+Len), BCACHE); # elif defined(__mips__) const char *Start = static_cast(Addr); cacheflush(const_cast(Start), Len, BCACHE); -- cgit v1.1