summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-14 13:02:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-14 13:02:37 +0000
commit15cf700b415f6477fa4152904b8e28cfa501d206 (patch)
tree759e91af82ac7f409cd4eaf0d3c170951a16e0e5 /lib
parentc3b20c260ee17a66c6306f81293c75681d8ea0aa (diff)
downloadexternal_llvm-15cf700b415f6477fa4152904b8e28cfa501d206.zip
external_llvm-15cf700b415f6477fa4152904b8e28cfa501d206.tar.gz
external_llvm-15cf700b415f6477fa4152904b8e28cfa501d206.tar.bz2
Declare __clear_cache.
GCC declares __clear_cache in the gnu modes (-std=gnu++98, -std=gnu++11), but not in the strict modes (-std=c++98, -std=c++11). This patch declares it and therefore fixes the build when using one of the strict modes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Unix/Memory.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc
index 72a8af6..d56c9e4 100644
--- a/lib/Support/Unix/Memory.inc
+++ b/lib/Support/Unix/Memory.inc
@@ -33,6 +33,7 @@
#endif
extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
+extern "C" void __clear_cache(char *, char*);
namespace {