summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
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
commit17268dc192bad3a3ee79d74848fbcd644215662b (patch)
tree2e2988e268ab957cc80f8c8beb80863f197b3fa1 /llvm/lib/Support/Unix
parent2219fc58217103716b8aacf85c24eb1933779277 (diff)
downloadbcm5719-llvm-17268dc192bad3a3ee79d74848fbcd644215662b.tar.gz
bcm5719-llvm-17268dc192bad3a3ee79d74848fbcd644215662b.zip
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. llvm-svn: 181785
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Memory.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc
index 72a8af621df..d56c9e4b381 100644
--- a/llvm/lib/Support/Unix/Memory.inc
+++ b/llvm/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 {
OpenPOWER on IntegriCloud