aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorKeun young Park <keunyoung@google.com>2012-08-15 13:41:16 -0700
committerStephen Hines <srhines@google.com>2012-08-15 19:47:00 -0700
commitfe701e2c21e2e2b4b70d0264a80e6987d2727503 (patch)
tree7b781ca40e1997af64956fff3ce1cfed68b71396 /lib/Support
parent24e84260e3589e5fe3050822acaf605f6c8d4c5d (diff)
downloadexternal_llvm-fe701e2c21e2e2b4b70d0264a80e6987d2727503.zip
external_llvm-fe701e2c21e2e2b4b70d0264a80e6987d2727503.tar.gz
external_llvm-fe701e2c21e2e2b4b70d0264a80e6987d2727503.tar.bz2
fix MIPS build
- cacheflush(long start, long end, long flags) expects long Change-Id: I62a17fced343a2743aa5ce9e5d99c15c4f465cba
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Memory.cpp4
1 files changed, 4 insertions, 0 deletions
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<const char *>(Addr);
const char *End = Start + Len;
__clear_cache(const_cast<char *>(Start), const_cast<char *>(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<const char *>(Addr);
cacheflush(const_cast<char *>(Start), Len, BCACHE);