diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index 1c6af7fa0f2ff8869ddc52ca97ec64d2813f8ea1..58fda420eb624ab4572e0aa88d7ad33acc19cfeb 100644 --- a/llvm/lib/Support/Unix/Memory.inc +++ b/llvm/lib/Support/Unix/Memory.inc @@ -32,8 +32,11 @@ # endif #endif +#ifdef __APPLE__ extern "C" void sys_icache_invalidate(const void *Addr, size_t len); +#else extern "C" void __clear_cache(void *, void*); +#endif namespace {