From 044d84a55cdfd0e1c134ddfd26b9cf0678528a1e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 28 Jan 2015 10:11:43 +0000 Subject: [PATCH] rebase the patch --- debian/patches/declare_clear_cache.diff | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/patches/declare_clear_cache.diff b/debian/patches/declare_clear_cache.diff index 42491b96..43f77762 100644 --- a/debian/patches/declare_clear_cache.diff +++ b/debian/patches/declare_clear_cache.diff @@ -1,13 +1,13 @@ -Index: llvm-toolchain-snapshot_3.4~svn188990/lib/Support/Unix/Memory.inc +Index: llvm-toolchain-snapshot_3.7~svn227300/lib/Support/Unix/Memory.inc =================================================================== ---- llvm-toolchain-snapshot_3.4~svn188990.orig/lib/Support/Unix/Memory.inc 2013-08-22 09:07:39.252608486 +0200 -+++ llvm-toolchain-snapshot_3.4~svn188990/lib/Support/Unix/Memory.inc 2013-08-22 09:07:39.248608486 +0200 -@@ -336,7 +336,7 @@ +--- llvm-toolchain-snapshot_3.7~svn227300.orig/lib/Support/Unix/Memory.inc ++++ llvm-toolchain-snapshot_3.7~svn227300/lib/Support/Unix/Memory.inc +@@ -338,7 +338,7 @@ void Memory::InvalidateInstructionCache( // FIXME: Can we safely always call this for __GNUC__ everywhere? const char *Start = static_cast(Addr); const char *End = Start + Len; - __clear_cache(const_cast(Start), const_cast(End)); + __builtin___clear_cache(const_cast(Start), const_cast(End)); - # elif defined(__mips__) - const char *Start = static_cast(Addr); - # if defined(ANDROID) + # endif + + #endif // end apple