aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Unix/Memory.inc
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-03-20 04:33:53 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-20 04:33:53 +0000
commit84ba0bec3eb1a5f63c13a01e6d510ecd85fa6ab7 (patch)
treecd0f162852b5ae5671b45cb442fdae5d564bd0d1 /lib/Support/Unix/Memory.inc
parentcce4a469fc28dadbbf8671e8e23cc57fd3cbca4f (diff)
parentcd4c0bff77a9b5617896982e99dc80f469e26e4f (diff)
downloadexternal_llvm-84ba0bec3eb1a5f63c13a01e6d510ecd85fa6ab7.zip
external_llvm-84ba0bec3eb1a5f63c13a01e6d510ecd85fa6ab7.tar.gz
external_llvm-84ba0bec3eb1a5f63c13a01e6d510ecd85fa6ab7.tar.bz2
am cd4c0bff: Revert "Android uses cacheflush(long, long, long) for MIPS."
* commit 'cd4c0bff77a9b5617896982e99dc80f469e26e4f': Revert "Android uses cacheflush(long, long, long) for MIPS."
Diffstat (limited to 'lib/Support/Unix/Memory.inc')
-rw-r--r--lib/Support/Unix/Memory.inc5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc
index 2686ba6..e00394e 100644
--- a/lib/Support/Unix/Memory.inc
+++ b/lib/Support/Unix/Memory.inc
@@ -331,13 +331,8 @@ void Memory::InvalidateInstructionCache(const void *Addr,
const char *End = Start + Len;
__clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
# elif defined(__mips__)
-# if defined(ANDROID)
- // Android uses cacheflush(long, long, long) instead.
- cacheflush(reinterpret_cast<long>(Addr), Len, BCACHE);
-# else
const char *Start = static_cast<const char *>(Addr);
cacheflush(const_cast<char *>(Start), Len, BCACHE);
-# endif
# endif
#endif // end apple